PDA

View Full Version : c++ coding standards



guestgulkan
30th April 2008, 22:28
I've been reading a few sites about coding styles and true to form they are all contradictory.
Does it really matter as long as your are consistent?

fullmetalcoder
1st May 2008, 09:05
THe contradictions you found are quite normal... Not everyone agrees about coding standards. If you have a look at some source code formatters (e.g. Astyle) you'll see that there are several different "standards" but of course the only thing that realy matters is consistency within a source tree. Keeping in mind that coding standards are supposed to make code easier to read is also important ;)