4 ms·
In Java, there is not much space between hard-coding dependencies and implementing patterns which (also) make algorithms exchangeable at runtime. The first make
by limmeau 16y ago
In Java, there is not much space between hard-coding dependencies and implementing patterns which (also) make algorithms exchangeable at runtime. The first makes unit testing difficult, the second makes you look like a StrategyFactoryFactory fetishist. Often, link-time configurability would suffice, but that is hard to achieve with Java.