r/Clojure • u/vojimir • Jun 12 '19
Web Development with Clojure, Third Edition (Beta) Book available
https://pragprog.com/book/dswdcloj3/web-development-with-clojure-third-edition3
u/feelextra Jun 13 '19
Happy to see this knowledge coming together!
Just read the excerpt on WebSockets and I like how it starts from first principles, implements an approach from scratch and then proposes a library to get some useful features that we probably don't want to have to maintain ourselves.
This reflects just about any choice of tools we end up using in Web Development, and gives the reader the appropriate decision-making perspective: eliminate cruft, distill the essence and you'll be rewarded with less software to maintain.
Thank you for working on this book, especially for the benefit of easing the learning curve for newcomers!
2
u/MickeyMooose Jun 12 '19
I bought the 2nd edition last year. Haven't finished the book. Do I need to 'upgrade' to the 3rd edition, or is the 2nd still good for a while?
16
u/yogthos Jun 12 '19
Second edition should still provide a good general reference, but some parts are outdated at this point. New edition has a stronger focus on SPA style apps, covers Reitit and re-frame, and has a bigger focus on using the REPL as part of the development process. The new edition also does a deeper dive into architecture and design principles.
5
Jun 12 '19
I'm really very excited about this version. Just the kind of content I am looking for.
3
2
u/seancorfield Jun 12 '19
Will the 3rd Ed talk use
clj/deps.ednor will it still depend onlein/project.clj?Glad to hear the REPL is being given more focus in this edition!
2
u/yogthos Jun 12 '19
3rd ed uses Luminus as the base template for the apps, so all the projects use lein. I think there is a lot of value of handling things like building, testing, and packaging in a standard way.
1
u/INTERNET_COMMENTS Jun 14 '19
What % complete is the beta? Is it worth reading now, or should I wait a while?
2
u/yogthos Jun 14 '19
The beta is around 2/3 complete at this point. The first 5 chapters on the workflow, general architecture, Reitit, re-frame, and Swagger are more or less finished. There's no risk getting it early as you'll have access to the new content as it's being added, as well as the finished version once it's ready.
0
Jun 12 '19
[deleted]
1
u/INTERNET_COMMENTS Jun 14 '19
From your account you can get a coupon for 35% off the 3rd edition ebook if you already own the second edition.
2
1
u/gaogao987 Jun 17 '19
Please write a book called Dummy's guide to Clojurescript development with Reagent.
0
Jun 23 '19
[deleted]
1
u/yogthos Jun 23 '19
Hi, glad you're enjoying the book. And thanks for the feedback, we'll definitely look at expanding on mount usage and clarify what specifically resources are referring to. The
^is just the syntax for metadata. The particular piece of metadata hints mount not to restart the HTTP server when the component reload is triggered. The reason for doing that is so that server sessions aren't cleared any time components tracked by mount are reloaded.0
10
u/rufusthedogwoof Jun 12 '19
Third time I bought this book on pragprog. Highly recommended to assist in navigating all the options in clojure web dev.