2 ms·
It's too soon to have a deep opinion on the rfc, but just looking at the examples and thinking ahead... if folks start using this approach of leveraging a db c
by enjoylife 6y ago
It's too soon to have a deep opinion on the rfc, but just looking at the examples and thinking ahead...
if folks start using this approach of leveraging a db client in their components, I hope they are embracing dependency injection (DI) somehow, otherwise their codebases are going to become stupidly complex to test.
For an example of how (React + Server Side only plugins + DI) works today, take a look at how its implemented within fusionjs https://fusionjs.com/docs/references/creating-a-plugin/dependencies/ https://fusionjs.com/docs/references/creating-a-plugin/depen...
- thesimon 6y agoI know people like to hate Java because it's to enterprise, but I've found Java with Spring Boot to be very pleasant to work with to develop a REST API. Nice dependency injection, nice to implement port and adapters, same with Kotlin, probably similar with C#. More of a mess to do it with NodeJS.