Web framework is more than routing/rendering. We need something to store data (relational please), generate validation messages and forms (internationalized), asset compilation for both js (or cljs) as well as css (or sass, garden). Maybe even throw a few "commonly used" js libraries you're going to use anyways. We also need something to manage database migrations and multiple environments (dev, test, staging).
I'd love to see a lein new _ exist that automatically created a full blown project with everything in it where I could remove/replace rather than add the rest. There's no excuse for a "rails new" option to not exist in the Clojure realm.
This framework/monolith phobia is what kills my favorite language from being practical in my day to day. I manage and work on the start through launch of 10-12 websites per year. Sometimes rails makes weird decisions (looking at you coffee script, turbo links) but I just delete those two lines in the gem file, type "rake db:setup" and praise the heavens ActiveRecord exists.
Arachne will have modules to do most or all of those things, and normalizing data access is definitely a priority.
That said, if you like a template approach with a particular, opinionated set of libraries, Luminus actually does sound like something you should check out - that's almost exactly what it does. If the libraries and approaches it has chosen meet your needs, you might be really happy with it.
5
u/jhirn Apr 18 '16
Web framework is more than routing/rendering. We need something to store data (relational please), generate validation messages and forms (internationalized), asset compilation for both js (or cljs) as well as css (or sass, garden). Maybe even throw a few "commonly used" js libraries you're going to use anyways. We also need something to manage database migrations and multiple environments (dev, test, staging).
I'd love to see a lein new _ exist that automatically created a full blown project with everything in it where I could remove/replace rather than add the rest. There's no excuse for a "rails new" option to not exist in the Clojure realm.
This framework/monolith phobia is what kills my favorite language from being practical in my day to day. I manage and work on the start through launch of 10-12 websites per year. Sometimes rails makes weird decisions (looking at you coffee script, turbo links) but I just delete those two lines in the gem file, type "rake db:setup" and praise the heavens ActiveRecord exists.