3 ms·
It's not. But it makes you look smart, and helps you justify your salary to other engineers. Management don't give a toss, as long as you deliver value (featur
by pumpkinman 5y ago
It's not. But it makes you look smart, and helps you justify your salary to other engineers.
Management don't give a toss, as long as you deliver value (features and fixes) on time.
- dimgl 5y agoThis is not necessarily true. Dependency injection allows you to provide your own implementations for unit testing. I'm surprised we're still talking about dependency injection in Node.js. I made a really crude dependency injection library for Node six years ago. https://github.com/divmgl/nwire https://github.com/divmgl/nwire
- pumpkinman 5y agoBut you can just mock the singleton