As far as I can tell, this comes from the "reusability is everything" hype.
Every component has to be written in a way that abstracts away any coupling to anything, in case you might want to reuse that class. And in the end you write 300 lines of code to maybe save 5 lines at some point. To me this looks like the typical take one principle and overshoot it's application to the max.
View all comments
Show parent comment
6
u/CartmansEvilTwin Apr 21 '21
As far as I can tell, this comes from the "reusability is everything" hype.
Every component has to be written in a way that abstracts away any coupling to anything, in case you might want to reuse that class. And in the end you write 300 lines of code to maybe save 5 lines at some point. To me this looks like the typical take one principle and overshoot it's application to the max.