User:Petrb/CodingStyle

This page describes the coding style I use in C++, which is inherited from GNU / Allman's

Brackets: Why Allman and not K&R
Because this way you can see opening and closing brackets on same level. It makes it easier to read and parse in your head :-)

pros:
 * You never get troubles with brackets
 * You will always find a start and end of a block with quick look

cons:
 * Eat more spaces (this is pro at some point, because it makes it easier to see blocks, as they are divided by blank line as well)

Tabs vs spaces
4 spaces instead of a tab. Because different ide's render them in a different way

more to come