Are the books "Clojure Applied" or "Web Development with Clojure" good for learning how to create Clojure applications, specifically web applications? I ask because the latest edition of the first is from 2015 and the second from 2021, meaning they are quite old. I see, for example, that they use Leiningen instead of deps.edn.
@pedroaugusto I think you can still work through the latest Web Dev book to build your intuition about Clojure-style web app construction. Leiningen remains perfectly fine for production use. It's just a build tool. The key thing to learn is the how and why of putting together web apps when there isn't really a "one true framework" to default to. Alternately, have a look at #biff’s tutorial as well as #zodiac . And this section of a (giant) blog post I wrote on the subject, offers some opinions about what to read and why: "https://www.evalapply.org/posts/clojure-web-app-from-scratch/#getting-started-and-tutored".
@adityaathalye You're absolutely right! Actually, I'll only read "Clojure Applied" to learn how to model the domain and those other timeless things. After that, I'll start experimenting with Biff and Kit. I don't think it's really worth reading "Clojure for Web Development" if we already have the Biff/Kit documentation and tutorials. And since I'm not a beginner in web development, this is a good path. Regarding the article you shared, very cool! I read it yesterday. There is the https://caveman.mccue.dev/ guide as well
Oh ya, I forgot #caveman ... happy building!
@pedroaugusto if you're using Clojure with libraries that are less than 7 years old, you're missing out. The classics have stood the test of time. Of course, new things may prove even better, or better in some ways more than others. But it is a great feature of Clojure (and its stewards) that "keeping up" is basically not a distraction. As for web development... you'll be surprised, the various ways of doing it turn out to have a lot of fundamentals in common. Pick any. Then you can explore something else later.
@alexmiller Thank you very much for your reply. I will definitely continue reading your book; I trust your work. I just finished reading Programming Clojure, amazing book! I watched the talk you recommended. Very good. In fact, that will be my approach; I'm quite familiar with HTML Over the Wire (I come from Rails). Although I tend more towards HTMX than DataStar.
@phill Thank you for sharing your perspective. I really appreciate it. I understand that the Clojure ecosystem is very stable. I will read both books, then. Thank you!!
hi, I'm the author of Clojure Applied - it is still mostly valid. the language remains stable so in general any code you see there should still work, however there are some newer language features that of course will be absent and some of the library suggestions may no longer be the most up to date suggestions. However, it does not cover web apps specifically at all, so if that is your goal, may not be worth picking up.
Web Dev is still probably a useful thing to look at, although it definitely will not cover the most current ideas. the book focuses on Luminus, which has since been superseded by https://kit-clj.github.io/. There are also other newer approaches that you may find interesting. A recent talk covering some newer ideas at https://www.youtube.com/watch?v=8W6Lr1hRgXo may give you some resources there.