Solid principles vs YAGNI

Posted by KeesDijk on Programmers See other posts from Programmers or by KeesDijk
Published on 2010-12-30T14:48:12Z Indexed on 2012/12/14 23:22 UTC
Read the original article Hit count: 323

Filed under:
|
|

When do the SOLID principles become YAGNI?

As programmers we make trade-offs all the time, between complexity, maintainability, time to build and so forth. Amongst others, two of the smartest guidelines for making choices are in my mind the SOLID principles and YAGNI. If you don't need it; don't build it, and keep it clean.

Now for example, when I watch the dimecast series on SOLID, I see it starts out as a fairly simple program, and ends up as a pretty complex one (end yes complexity is also in the eye of the beholder), but it still makes me wonder: when do SOLID principles turn into something you don't need? All solid principles are ways of working that enable use to make changes at a later stage. But what if the problem to solve is a pretty simple one and it's a throwaway application, then what? Or are the SOLID principles something that always apply?

As asked in the comments:

© Programmers or respective owner

Related posts about design

Related posts about philosophy