![]() ![]() But you may not know what those future requirements are or if they will exist as envisioned. One reason to create more complex code is to make it more flexible to accommodate further requirements. So simple and stupid programs are easier to maintain because the maintainer needs less time to understand them and is less likely to introduce further defects. The maintainer might also be less familiar with sophisticated programming language features. The advantage of simplicity is even more significant when the person who maintains the software is not the one who wrote it. ![]() Furthermore, writing simple code is less error-prone. This includes increased readability, understandability, and changeability. Simpler solutions are easier to maintain. It does not mean that complex features should not be used, they should only be used when necessary, or there is a substantial advantage to be gained. The KISS principle states that a solution is better when simpler, so it uses less inheritance, less polymorphism, fewer classes, etc. It is easy to create sophisticated solutions for various problems in software, as modern programming languages, frameworks, and APIs have powerful features that enabled engineers to write "clever" solutions. It claims there is no value in a solution being "clever" when a simpler solution would suffice. A solution may look dull or even "stupid," but understandable and straightforward. The KISS principle prioritizes clarity over cleverness. A simple solution is better than a complex one. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |