On 02/21/2013 03:40 PM, piterrr.dolin...@gmail.com wrote: > Chris, you are (almost) spot on with the if blocks indentation. This > is what I do, and it has served me well for 15 years.
Most companies, development teams have unified coding style standards that all programmers must adhere to in the company. They do vary across different companies of course. Some may require K&R syntax for braces, others might settle on GNU-like rules. One nice thing about requiring braces in C-like languages is that it's trivial to run a utility on the source code to reformat it to the required specification. The point, though, is that even though you prefer to do if blocks that way, if you were to change jobs and join the development team in another company they may require you to format them differently. So we have to adapt our styles to the needs of the team, the project, and the language. I have never had a problem fighting indentation for blocks, and it always seemed natural (just like how I program on paper or the back of napkins). I am equally at home with C braces too. Seems about the same to me, except I can simply leave off the braces on python. -- http://mail.python.org/mailman/listinfo/python-list