It has been discussed before but not adequately, nor final decissions has been made on the issue in my opinion.
What coding style should we adopt, if any? Is it necessary? Should we follow some standards?
I beleive in some cases it could be critical.
Generally it would help a bit if we would put some fundamental rules.
a) ANSI compliant code. We should code exclusively under the ANSI standard unless absolutely necessary to go with Microsoft Visual C++ specific coding.
b) Comments. We can go with fromafar's style, perhaps add some additional information in the header of each file altered. I recommend we add comments at the start and the end of the new code we enter to mark the start and end of it, plus the name of the coder who added the code, and a small description if needed. Whether \\ or /* */ should be used or a combination is under discussion also.
c) Naming style. What we need here is a descriptive name for each variable, constant, object etc. Secondary styling like camel-notation, hungarian-notation, underscore character usage etc. can be discussed but I don't think they are important and each coder could co with his style, perhaps with a common agreement on the uppercase and lowercase letters.
d) Whitespace. How much whitespace should be used to sort the code and make it more readable? How much do we indent?
e) Braces. Can the way braces are put cause problems?
f) Long lines. Should we keep long lines or break them down into more?
Also other areas such as access, class definitions, include files, assertions, libraries, etc. can be discussed here whether it is early or not and will be of more use when we start to make extensive changes and additions to the code.
What coding style should we adopt, if any? Is it necessary? Should we follow some standards?
I beleive in some cases it could be critical.
Generally it would help a bit if we would put some fundamental rules.
a) ANSI compliant code. We should code exclusively under the ANSI standard unless absolutely necessary to go with Microsoft Visual C++ specific coding.
b) Comments. We can go with fromafar's style, perhaps add some additional information in the header of each file altered. I recommend we add comments at the start and the end of the new code we enter to mark the start and end of it, plus the name of the coder who added the code, and a small description if needed. Whether \\ or /* */ should be used or a combination is under discussion also.
c) Naming style. What we need here is a descriptive name for each variable, constant, object etc. Secondary styling like camel-notation, hungarian-notation, underscore character usage etc. can be discussed but I don't think they are important and each coder could co with his style, perhaps with a common agreement on the uppercase and lowercase letters.
d) Whitespace. How much whitespace should be used to sort the code and make it more readable? How much do we indent?
e) Braces. Can the way braces are put cause problems?
f) Long lines. Should we keep long lines or break them down into more?
Also other areas such as access, class definitions, include files, assertions, libraries, etc. can be discussed here whether it is early or not and will be of more use when we start to make extensive changes and additions to the code.
Comment