News for hackers. Stuff that matters.
Re:Compile-Time DI vs. Run-Time DI by kazagistar on Tuesday April 30, 2019 @11:26AM (#19788794)
Java has a fairly nice compile time DI framework in Dagger. However, it feels like it is missing a compile time version of the rest of the web stack: compile time routing and compile time template compilation, for example. Does anyone have any suggestions to fill out this stack?
Re:Compile-Time DI vs. Run-Time DI by snuxoll on Tuesday April 30, 2019 @12:00PM (#19789104)
It’s not perfect by any means, but there is Ktor as an example. Use kotlinx.html for your templates and everything is defined at compile time.