4 ms·
Yes I really wish for something like Django for a statically typed language (maybe Spring? Haven't tried it). I'm writing a CRUD CLI ( https://github.com/bbkan
by bbkane 1y ago
Yes I really wish for something like Django for a statically typed language (maybe Spring? Haven't tried it).
I'm writing a CRUD CLI ( https://github.com/bbkane/enventory/ https://github.com/bbkane/enventory/ ) partly to practice doing it in Go, and while I'm mostly happy with the resulting code, theres just a whole lot of it. At least it's simple enough that I can trust LLMs to ok jobs with detailed prompts (example: https://github.com/bbkane/enventory/blob/master/.github/prompts/2025-07-03-var-ref-update-cmd.prompt.md https://github.com/bbkane/enventory/blob/master/.github/prom... )
- t312227 1y agohello, as always: imho. (!) hmmm ... i think spring-boot combined with either java or kotlin is a very good alternative to django. even so i wouldn't compare them directly, but static typing avoids a lot of problems. idk ... for me personally one of djangos great features is its custom db-model and relative (!) painless db schema-migration. for spring-boot i often went with the tool flyway for handling db-migration ... just my 0.02€
- oblio 1y agoYou mention Django, but these days, are you using the full Django experience or are you mostly writing REST APIs? In Java land a very nice and much lighter weight framework is Dropwizard: https://github.com/dropwizard/dropwizard https://github.com/dropwizard/dropwizard It's basically a sort of All-Stars collection of Java libraries, nicely packaged and with some nice conventions. Towards the more servless route route there's Micronaut: https://micronaut.io/ https://micronaut.io/
- dingi 1y agoI haven't tried Dropwizard. Is it a batteries included as Spring Boot? Eg: How is authentication support? Do we need a lot of boilerplate to implement let's say an OAuth2 resource server?
- brabel 1y agoI used it a long time ago. As far as I know, it's an abandoned project now, very few people use it in the Java community. Go for one of the more popular ones: Spring, Micronaut, Helidon or Quarkus.
- kukkeliskuu 1y agoThere are new frameworks all the time, but only very few establish a community that allows the framework to survive on the longer term. When you choose something that has been around for a long time, the probability for this is much higher, than for something that looks promising. Another benefit of the established frameworks is the amount of experience from various corner cases that has been coded in them. New frameworks often appear to handle simple use cases more conveniently, but that is only because they ignore all the complexity that the established solution has painfully learned throughout the years. You get that "for free" when you choose such a framework.
- oblio 1y agoYup, exactly, and Dropwizard is basically an opinionated bundle of Java "All-Stars" libraries. It's not like the "glue" needs a ton of updates and everything else is already well maintained at the source.
- brabel 1y agoHm I can guarantee that the frameworks I listed above will be well maintained for a long time and are much more “battle tested” than Dropwizard itself (though some of the libs that it includes are actually independent and used in other frameworks, those are sure to survive long time). You make it sound like Dropwizard is the more established framework when in reality it’s rather the opposite.
- throwaway7783 1y agoSpringboot is pretty good, if java/kotlin are your lang of preference. Still not the same bells and whistles as Django, but really good otherwise. The database interactions are pretty good.
- satvikpendem 1y agohttps://loco.rs https://loco.rs, it's like Ruby on Rails, but for Rust (as their website says). Personally I find Django and Rails too magical for my taste so I just use simpler libraries like Axum, but it's nice if you want all the bells and whistles. Plus, it's much faster than either Python or Ruby.