-
Notifications
You must be signed in to change notification settings - Fork 76
Description
Came here to see real examples, got a simplified answer.
The video was good for explaining the basics, but I expected the code to follow all rules.
I wanted to see what it looks like, but I can only imagine it based on the rules and the style guides.
For example: 4.9.4 Functions - AV Rule 58 (page 26):
When declaring and defining functions with more than two parameters, the leading
parenthesis and the first argument will be written on the same line as the function name.
Each additional argument will be written on a separate line (with the closing parenthesis
directly after the last argument).
WindComponents calculate_wind(Float64 track, Float64 heading,
Float64 wind_dir, Float64 wind_speed) {Correct form (if written with better comments than "IDK"):
WindComponents calculate_wind( Float64 track, // I don't know what is this due to lack of documentation and
// lack of my knowledge about planes.
// What's ground track?
Float64 heading, // Where the plane is heading
Float64 wind_dir, // The direction of the wind
uint16 rcv_max_instances) // The maximum number of instances of this
{
…
}
Couldn't find other public codes. Got more results for Java Server Facets (also JSF) than the AV one. :(
I guess this is a really unexplored topic.