Jump to content

RidgeRun Developer Manual/Coding Styles/C++: Difference between revisions

Line 47: Line 47:


Se [https://google.github.io/styleguide/cppguide.html#Local_Variables here] for examples.
Se [https://google.github.io/styleguide/cppguide.html#Local_Variables here] for examples.
=== Inclusive language ===
In all code, including naming and comments, use inclusive language and avoid terms that other programmers might find disrespectful or offensive (such as "master" and "slave", "blacklist" and "whitelist", or "redline"), even if the terms also have an ostensibly neutral meaning. Similarly, use gender-neutral language unless you're referring to a specific person (and using their pronouns). For example, use "they"/"them"/"their" for people of unspecified gender (even when singular), and "it"/"its" for software, computers, and other things that aren't people ([https://google.github.io/styleguide/cppguide.html#Inclusive_Language reference]).


=== Comments ===
=== Comments ===
Line 70: Line 66:
}
}
</syntaxhighlight>
</syntaxhighlight>
=== Inclusive language ===
In all code, including naming and comments, use inclusive language and avoid terms that other programmers might find disrespectful or offensive (such as "master" and "slave", "blacklist" and "whitelist", or "redline"), even if the terms also have an ostensibly neutral meaning. Similarly, use gender-neutral language unless you're referring to a specific person (and using their pronouns). For example, use "they"/"them"/"their" for people of unspecified gender (even when singular), and "it"/"its" for software, computers, and other things that aren't people ([https://google.github.io/styleguide/cppguide.html#Inclusive_Language reference]).


=== Use a license and authors header ===
=== Use a license and authors header ===
Cookies help us deliver our services. By using our services, you agree to our use of cookies.