DEV Community

Discussion on: AHA! No more STUPID Codes,YAGNI.

Collapse
 
mr_cea profile image
Ogbonna Basil • Edited

@jorge , I am happy you found this worthwhile.In a bid to kiss during development, you would make functions and methods as simple and focused as possible. What better way to make functions and methods simple than assigning them a single responsibility.
When you need to use a method which has already been defined in another class, instead of recreating the method, you just need to extend the base class and if need be override the method without affecting the base class. That keeps it simple. And that adheres to the open close principle. These are just a few examples. You can read more about Solid and KISS here