News for hackers. Stuff that matters.
Re:Criminal Overengineering by a-priori on Wednesday June 23, 2010 @11:50AM (#1455241)
As always, the best solution is somewhere in the middle of the two extremes. Everything has a cost. YAGNI has a cost of rework later if it turns out you do need it after all. Architecting For The Future has extra up-front and maintenance costs, which is wasteful if it turns out the future wasn't as you saw it.

And so, it becomes a cost-benefit analysis. C(YAGNI) = C(develop a simpler version) + C(rework) x p; C(AFTF) = C(develop) + C(maintain). Where p is the anticipated probability that you will actually need that feature (and realizing that you're probably going to guess higher than the actual probability).

Re:Criminal Overengineering by anamax on Wednesday June 23, 2010 @12:30PM (#1455375)
There's a C(rework) term in C(AFTF) as well because the "in advance" work never actually "just works" for the future that shows up.
Re:Criminal Overengineering by jimbokun on Wednesday June 23, 2010 @05:43PM (#1456484)
"Everything has a cost. YAGNI has a cost of rework later if it turns out you do need it after all. Architecting For The Future has extra up-front and maintenance costs, which is wasteful if it turns out the future wasn't as you saw it."

Isn't that why we write good unit tests and refactor? It gives you close to best of both worlds. Writing unit tests is helpful anyways, and gives you peace of mind when you introduce patterns later on when you actually need them.