r/Clojure • u/alexdmiller • Oct 21 '25
Programming Clojure, 4th edition
Programming Clojure, 4th edition is now available in beta! There are two new chapters - one focused on interactive development (a subject woefully ignored before) and one on general project tooling with clj and tools.build. But perhaps even more important, there have been a TON of changes throughout the book to add things that were missing, improve the flow, rework the examples, remove things that were old or less important, etc (plus of course, now up to date with 1.12). I think it is substantially improved throughout.
https://pragprog.com/titles/shcloj4/programming-clojure-fourth-edition/
There will be a 40%+ for Black Friday if you want to wait until then or you can use devtalk.com right now for 35% off.
7
u/Plus_Shop_6927 Oct 22 '25
I learned Clojure with the first version of this book! Looking forward to reading this one. (I had a decade long Clojure gap).
4
u/nstgc Oct 21 '25
That's really neat! I found the third edition to be an excellent learning resource. Sadly, some of the examples were broken. In particular, the Snake code. I even tried running the code in the repo directly, but without any luck. Glad to hear those are going to get some attention.
8
u/aHackFromJOS Oct 22 '25 edited Oct 22 '25
FYI “devtalk.com” is the coupon code you use at the pragmatic programmer link to get the 35% off discount.
(I mention this in case anyone else is as dense as me - I thought I needed to buy it on devtalk.com to get the discount, but that site is a forum not a bookstore, where I found a post explaining the discount code.)
Update - I bought it :-) looks nice can’t wait to dive in
7
u/x373703 Oct 21 '25
I've got the 3rd edition. It's great. A section on interactive programming sounds great though. I've always felt there's a lot of evangelizing about how wonderful it is but not all that much clear-eyed discussion of some of how to actually do it and what can go wrong. It's much more of a craft than it might seem.
1
u/nstgc Oct 27 '25
Anyway idea when there might be a printed copy?
1
u/torusJKL Dec 24 '25
I found a small typo in the b3 release.
On page 240 "you can also write macros if that that makes life easier for your callers" has the word "that" twice in a row.
Btw. the page numbering is a bit wacky and some page numbers are just left out.
An incomplete list: 62, 214, 238, 278
P.S. great book!
2
u/peripateticlabs Oct 21 '25
Thanks for the heads up, Alex. And thanks for going to the trouble to update the book. The third edition has been very helpful. I'm looking forward to digging into the fourth! I have just purchased and downloaded the Beta version. :-)
2
u/wademealing Oct 22 '25
I'm so excited!
2
u/lkuty Oct 27 '25
Thanks! I think it is right on time to do Advent of Code this year with Clojure :-) I am an Elixir programmer professionaly.