Hacker News new | ask | show | jobs
by kentonv 3991 days ago
> because potentially you have to have an extra parameter to EVERY function or method

More often you have an extra parameter to class constructors, not every method. It's really not that bad, even when you choose to do it manually (as I do) rather than use a dependency injection framework.

> I believe in KISS - everything should be as simple as possible but not simpler.

I agree, which is why I avoid singletons because while they appear to reduce complexity in the short term they add horrendous amounts of complexity in the long term.