DEV Community

Discussion on: Understanding SOLID: Single Responsibility Principle

Collapse
 
nomikz profile image
nomikz • Edited

Oh deer.. Probably, you have never had to deal with maintaining huge legacy monoliths.
It is generally a good idea to follow best practices from the start. As the project grows, technical debt will start getting accumulated really fast.

Collapse
 
themelis profile image
Themelis

It's true I've never delt with huge legacy monoliths mainenance and following best practises from the start (and along the way) sounds logical to me. All I am asking: is implementing SOLID or SRP always a best practise? Aren't there cases that introduces needless complexity and overdesign (as Robert Martin states)?

Thread Thread
 
nomikz profile image
nomikz • Edited

It is good to learn good practices early on.
What is really bad is premature optimization :D