2 ms·
Frankly, that's almost a tutorial for Spring, it's only missing the container. I've dealt with enough co-workers to know this isn't hypothetical. There's a slo
by ebiester 16y ago
Frankly, that's almost a tutorial for Spring, it's only missing the container.
I've dealt with enough co-workers to know this isn't hypothetical. There's a slow backlash against this kind of thinking, but it's slow. 5 years ago, I was told that singletons and utility classes were always evil because they were "unmaintainable.)
On the other hand, I've been in situations where the factory/pluggable architecture was the right decision, especially in consultingware where you build the product for your first client, then you go after an RFP that's "pretty close" but don't want to end up maintaining two, and three, and seven code bases which often have the same bugs. That's the problem this pluggable architecture solves.
If you have 7 clients paying you a million bucks to have exactly what they want (out of a market of... say 25-100) and 50k a year in maintenance, this makes sense.
Most of the time, though, YAGNI.