#when do you stop injecting ?
1 messages ยท Page 1 of 1 (latest)
Don't inject when the instance object needs to be changed (date, stream, etc)
1 messages ยท Page 1 of 1 (latest)
I love the DI model of NestJS, think that it's very smart ๐
However, at what point do you stop injecting and start using "new()" ?
Taking it to the extreme, you wouldn't inject a Date() , you would say const d = new Date()
I'm genuinely curious how and when people draw the line
Don't inject when the instance object needs to be changed (date, stream, etc)