Timeline for SOLID principles vs YAGNI
Current License: CC BY-SA 2.5
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 21, 2021 at 13:19 | comment | added | Adamantish | Disagree. When companies use Ruby on Rails they do so to achieve high velocity, usually at the cost of technical debt. Much of how Rails achieves this is by going hard on YAGNI and encouraging devs to absolutely ignore most of SOLID. Lots of SRO violation, implicit imports over explicit DI, etc... The trade-off is real. It allows conventional APIs and web apps to be created with minimum imaginable code while a good number of the more detailed best practices come for free under the hood. The pain comes later when the company find they have 3000 line God model which touches everything. | |
May 5, 2018 at 15:51 | comment | added | icc97 | "SOLID principles aren't needed when it's a throw-away application". I think that SOLID principles are a good habit, so even if it's a throw away application, you're training yourself for when you need to write a large application, so there can be a benefit of following SOLID principles. | |
Aug 9, 2017 at 15:21 | comment | added | johnny | "Self-heal" is good. "Before the customer asks for it," is also good because I think the whole idea, if you listen to Uncle Bob, is for places that make a profit and anticipate the needs of the customer and having a viable business that can respond to needs because they change. Lots of people get annoyed at Uncle Bob because he doesn't get right to the programming, but he is telling you, most of the time, why it matters to use SOLID, not just how. | |
Aug 5, 2016 at 14:05 | comment | added | Tulains Córdova | Often times throw-away applications aren't. | |
Jul 3, 2016 at 7:11 | comment | added | sara | @Wolf the SOLID principles don't say WHAT you should do, only HOW. if you already decided that you want self-healing cars, then you can apply the SOLID principles to that code. SOLID doesn't say whether or not a self-healing car is a good idea though. That's where YAGNI comes in. | |
Jan 9, 2015 at 13:51 | comment | added | Wolf | Isn't this mixed up? What about this: Properly apply SOLID principles to handle the complexity of self-healing cars, or apply YAGNI as long as your cars are still so simple that they will never break (or - alternatively - so cheep that they can be just thrown away). | |
Dec 30, 2010 at 14:54 | history | answered | George Stocker | CC BY-SA 2.5 |