Routing, templating, "views" in general, serving the app, are all IMO solved to death in Clojure. Those are the relatively easy problems, and there's never a shortage of people offering solutions to easy problems. Lifting data access to an abstraction (and ease-of-use) tier higher than SQL (with manually-written SQL migrations) would be a massive gain for Clojure web dev, usable and useful in all manner of applications.
For my part, if Luke can create a comprehensive database integration to compete with the stories from Django and Rails -- migrations, easy data access (with ORM ease-of-use, if not ORM design), etc. -- I think that would be the ideal starting point for this. The closest we've come is Korma, which helps not-at-all with migrations and for all it's fancifulness is still an SQL DSL, not a higher-level abstraction.
I would love to see something that allows us to place restrictions on the set of data a particular request has access to in a central place. After working with templated queries a good bit such as yesql, it's just too dangerous to try to implement restrictions on every single query, I don't trust myself.
Also maybe a common data structure similar to ring that represents sql queries, on top of which libs can do syntax.
7
u/adambard Apr 18 '16
Routing, templating, "views" in general, serving the app, are all IMO solved to death in Clojure. Those are the relatively easy problems, and there's never a shortage of people offering solutions to easy problems. Lifting data access to an abstraction (and ease-of-use) tier higher than SQL (with manually-written SQL migrations) would be a massive gain for Clojure web dev, usable and useful in all manner of applications.
For my part, if Luke can create a comprehensive database integration to compete with the stories from Django and Rails -- migrations, easy data access (with ORM ease-of-use, if not ORM design), etc. -- I think that would be the ideal starting point for this. The closest we've come is Korma, which helps not-at-all with migrations and for all it's fancifulness is still an SQL DSL, not a higher-level abstraction.