Programming Practices and Coding Standards

Using solid coding techniques and good programming practices to create high quality code plays an important role in software quality and performance. In addition, by consistently applying a well-defined coding standard and proper coding techniques, and holding routine code reviews, a team of programmers working on a project is more likely to yield a software system that is easier to comprehend and maintain.

Goals

The goals of good programming should not be so different from those of good software engineering. Well-architected code should be:

  1. Predictable
  2. Coding throughout a website or an app should be consistent and understandable. Changes should do what you would expect without side-effects.

  3. Reusable
  4. Implementing code generically so it can apply to a wide range of objects and applications. Design the application as a set of building blocks to organize your application and support code reuse

  5. Maintainable
  6. As new components and features are needed, it should be easy to add, modify and extend without breaking (or refactoring) existing components

  7. Scalable
  8. Code should be easy to manage for a single developer or for large, distributed teams.

  9. Readable
  10. Code readability has a significant impact on developer time. Unreadable code is harder to understand, harder to modify, harder to fix, and easier to get wrong.