You might be asking, what makes for good software code? When writing using C#, Visual Basic, PHP, or Transact-SQL, you need to look for specific characteristics to help you determine if it is good code:
- Readable – Code that’s written in a way that makes it easy for other programmers to understand with a minimal amount of time and effort is considered top notch.
- Testable – Good code should be testable programmatically.
- Works – If the code doesn’t do what it needs to do, it is of no use.
- Pretty – Is the code well formatted? This has a lot to do with how well it appears in the IDE, and may have nothing to do with how well it actually works.
- Maintainable – Can the code be easily maintained over time, as changes are made and new features are added?
- Changeable – You don’t really know how well code is written until you attempt to make a change. If making a change turns into a coding nightmare, it isn’t good code
- Simple – Writing software is using associated with taking very complex requirements and wrapping them in a program that always works. This sometimes is accomplished by taking very complex problems and solving them with simple ideas.
- Fast – Is the code execution fast, or really slow? Good software is as fast as the user expects it to run, which is usually faster than technically possible. Good code makes difficult and complex processes run fast.
- Timeless – Good code is code that is good today, and good tomorrow. If it is worthless in a few days or few years, it isn’t good code.