DEV Community

Discussion on: To-Do List ✍️

Collapse
 
foresthoffman profile image
Forest Hoffman

📌 Single Responsibility Principle . Design classes/functions in a way that it is only doing ONE thing.

Oh boy this is a tough one to adhere to, especially with complex systems. Even these days, I have to remind myself that minimizing responsibility for any one unit of a system lends itself to easier tests, documentation, and even onboarding!

Cheers to learning! 😀🍻