Writing good quality usable code is an art form and easily achieved by understanding a few basic considerations.
Usability
“Before software can be reusable it first has to be usable.” – Ralph Johnson
— Programming Wisdom (@CodeWisdom) February 17, 2020, on Twitter
Usable code is:
- easily fixed and maintained
- easily expanded, modified or enhanced
Quality Code
Good quality code can remain in use for several years (on average, lifetimes estimated to be around 6 years), or sometimes much longer. Whereas poor quality code is normally replaced fairly quickly as it is difficult, or impossible, to maintain. Good qualities include: