4 ms·
IMO, automatic DI frameworks were a big mistake. An idea that looks useful at the time, but actually leads to spaghetti mess code that is harder to maintain tha
by inoffensivename 3y ago
IMO, automatic DI frameworks were a big mistake. An idea that looks useful at the time, but actually leads to spaghetti mess code that is harder to maintain than it would be without any automatic DI.
- erickf1 3y agoAgreed.
- flaminHotSpeedo 3y agoI agree, though I'd say in the more general case that overly flexible DI frameworks are the broader problem. Designers will put much more thought into how best to interact with a framework, so start with a small, opinionated interface then consider extension feature requests on a case by case basis