Archive for the ‘HTML/CSS’ Category

Standard Formatting for Code

Thursday, May 15th, 2008

Something that comes up constantly on our team is coding standards. I’m fallen into the “code enforcer” role, if not because I’m the most vocal about writing clean code that’s easy to navigate and maintain. However, there are people that write code I consider clean, but not to my liking. I like tabs to be 5 mono-spaced characters, but there’s people that like 2-3 spaces. I like every CSS declaration to be on a single line, but a lot of people like to have line breaks for property. As a result, there’s a hodgepodge of coding styles all mixed together. How do we make it so that it’s easy for everyone to jump right in and start being productive?

What key items need to be taken into consideration when coming up with a schema that will work for everyone? Here’s the items I find important:

(more…)