[nycphp-talk] Best practices for naming conventions & coding style?

Ajai Khattri ajai at
Tue Apr 28 11:35:06 EDT 2009

On Mon, 27 Apr 2009, Kristina Anderson wrote:

> Lastly anyone who tries to impose THEIR conventions on you is to be ignored.  This is all 
> about you, and what widget YOU think is easiest to use.  Worrying about where to put a 
> curly bracket is not worth it -- put it where you like it!  As long as the code works you are 
> golden.

The only problem with this is when in a team and different members work on 
the same bits of code. Can you imagine a class written in two or three 
different bracing styles is like?! Your team HAS to agree on some 
standards and stick to them. Some of these might go against your own 
personal grain but such is the price of teamwork and consistent code.

So no, a free-for-all is not always good advice.

Aj. (who had to formulate team rules early on... :-)

More information about the talk mailing list