r/Clojure • • Apr 17 '16

The State of Clojure Web Development

http://yogthos.net/posts/2016-04-17-state-of-web-clj-dev.html
74 Upvotes

51 comments sorted by

View all comments

16

u/citrined Apr 18 '16

The projects I consult on and the products I make dev plans for haven't called for a monolithic (or merely opinionated) "framework" in a very long time. A product might need a REST API and a React front end. I'm not going to spin up a Luminous app to do everything. I'm also not going to create two Luminus apps for the tasks. Other frameworks are the same for me. But I will peek at them to see what libraries they use and how they connect pieces of the puzzle and in that way they're most valuable to me and the kind of work I do.

I think the entire industry is moving toward libraries over frameworks. Slowly but surely. Clojure has been in that way for a long time. I am satisfied with the status quo.

I would pay in to a Kickstarter to improve Leiningen, or speed Boot development, or make Auth even easier, or fund a book on writing re-frame apps. But not for everything plus the kitchen sink all at once from the ground up or a 70 line :dependencies vector.

3

u/yogthos Apr 18 '16

I think a lot of people end up coming up with their own templates for the specific work they do. It really doesn't take that much effort once you know your way around the ecosystem, and the solution ends up being lean and thus easier to maintain.

The main value in something like Luminus is to provide a good starting point. As you note, it can be useful to see how things can be plumbed together, and it also provides documentation on how to accomplish common tasks. If you're just starting out, then it lets you focus on actually making things, while if you know your way around stuff it acts as a reference.

My experience is that the library oriented approach works great for most projects. The libraries abstract how something is done, while my code that puts the libraries together describes what's being done.

0

u/[deleted] Apr 18 '16

[deleted]

1

u/yogthos Apr 18 '16

I've looked at it, but I use Reagent and Postgres for my apps. It's good to see that somebody's making it easier to get started with Om.next though.

1

u/seanirby Apr 18 '16

I just finished my first Om Next app and I'd like to tryout Reagent to see how it compares. Since you have experience with it, can you point me towards a small/medium app using Reagent with a SQL backend?

4

u/yogthos Apr 18 '16

The Reagent wiki has some apps built with it that you can look at. I would recommend taking a look at re-frame that's built on top of Reagent, as it's closer in scope to Om Next.