Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not critical of spring because real life software projects are messy. I'm critical because I rarely if ever do greenfield development and when I'm debugging a production exception caused by something that Java's type system was perfectly capable of treating as a compile time error that is suddenly a runtime error I'm a little bit sad. And the sheer frequency that I encounter them indicates that just getting more disciplined developers isn't really a solution here.


The number of time's I've seen an error that amounts to `this instance of Foo should have been a FooBar, not a FooBatz` is really depressing.


The real solution is to bite the bullet and build Spring's features into Java. Make as many failures as possible detectable during compilation, and go back to hard typing.


Or maybe if you just want to hardwire your dependencies, you shouldn't use dependency injection.


I guess at the end of the day I just don't feel like I need Spring's features.


Micronaut gives you that. Compile time validation of your bean wiring.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: