Some principles of software development
Writing quality production code consistently is not easy without some foundational principles under your belt. The purpose of this section is to whet the developer's appetite, and towards the end, some references are given for detailed study. Detailed coverage of these principles warrants a separate book on its own scale. The authors have tried to assimilate the following key principles of software development, which help one write quality code:
- KISS: Keep it simple, stupid
- DRY: Don't repeat yourself
- YAGNI:You aren't gonna need it
- Low coupling: Minimize coupling between classes
- SOLID principles: Principles for better OOP
Note
William of Ockham framed the maxim Keep it simple, stupid (KISS). It is also called the law of parsimony. In programming terms, it can be translated as "writing code in a straightforward manner, focusing on a particular solution that solves the problem at hand".
This maxim is important because, most often, developers fall into the trap...