Coding conventions are just a set of “guidelines” that talk about the style to format a code. For example, how to correctly use braces, commas, comments, capitalization, etc. You can read a lot more of these “rules” in these webpages:
https://gcc.gnu.org/wiki/CppConventions
Since masteries 1 and 7 we’ve been using the correct style and format. If we weren’t, we could’ve just written all our codes in one line instead of multiple lines, for example, tell me how do you prefer to read a code, like this? ->
Or like this? ->
Which one is easier to read?
And know you now why there are coding conventions: to make everything look nice and easy to read.
]]>Coding conventions are just a set of “guidelines” that talk about the style to format a code. For example, how to correctly use braces, commas, comments, capitalization, etc. You can read a lot more of these “rules” in these webpages:
https://gcc.gnu.org/wiki/CppConventions
Since masteries 1 and 7 we’ve been using the correct style and format. If we weren’t, we could’ve just written all our codes in one line instead of multiple lines, for example, tell me how do you prefer to read a code, like this? ->
Or like this? ->
Which one is easier to read?
And know you now why there are coding conventions: to make everything look nice and easy to read.
]]>