A good article by Pam Abdulla, key points she brought up were:
- Agree on a coding style for your workplace, document it, publish it and use it.
- Note dependencies, what the code effects and the expected results.
- Use white space.
- Establish naming conventions.
- Keep it simple.
Her rules are sweet and simple… like one of her rules itself.
There are so many times I’ve worked on projects where each developer uses a different coding style for the SQL and half the time removing all extra white space ends up being part of some people’s "style". Lines and lines of unending code…
Sometimes its more of a lack of style.