r/Clojure • • Feb 02 '16

(BETA): Web Development with Clojure, 2nd edition

https://pragprog.com/book/dswdcloj2/web-development-with-clojure-second-edition
51 Upvotes

30 comments sorted by

5

u/MahmudAdam Feb 02 '16

I enjoy this author's writing style. I just finished reading Clojure Distilled and found it to be one of the best introductions to the language.

5

u/tragiclifestories Feb 03 '16

There’s a certain amount of irony involved in having to write repetitive code.

Quote of the century, from /u/yogthos

4

u/Kah0ona Feb 02 '16

Since I started on my first, seriously decent-sized project for a real company (not internal use etc) this week, I am excited for this book :-)

I just bought it.

Although I am not using Luminus at the moment, I'll see if I need that, because on the server-side things are still open. I plan on using reagent/re-frame on the client.

3

u/yogthos Feb 02 '16

Fantastic, hope it'll come in handy! :) Luminus should work well with reagent/re-frame. I use reagent as the default setup for cljs there.

4

u/v1akvark Feb 03 '16

I bought it, in part to say thanks to yogthos for all the info and help he has provided on here and his blog :)

2

u/yogthos Feb 03 '16

Thanks, just doing my part. :)

2

u/JulioBarros Feb 03 '16

Just got the book and it looks great. Looking forward to really diving into it.

2

u/jchochli Feb 03 '16

35% discount if you bought the first edition from pragprog.com. Sweet!

1

u/splitbit Feb 06 '16

Mind sharing how one gets at the discount code? I have the first edition, but don't see the discount anywhere.

2

u/jchochli Feb 06 '16

Sorry, don't remember the exact location and I don't see it now that I've used the code. It was somewhere on the pragprog.com site. Either my account page, bookshelf, or the details page of the first or second edition. I didn't notice the discount code until I added the book to my shopping cart.

1

u/[deleted] Feb 02 '16

Is this still going to be released in late February or the date is pushed back again?

2

u/yogthos Feb 02 '16

Sorry for the delays, but the current version is mostly content complete. So, you're safe getting the beta right now, and it shouldn't change much for the final release. Pragmatic will provide updates as they come out and you get the final version as well when you get the beta. Here's their official page on how this works.

2

u/[deleted] Feb 03 '16

I am tempted to get it now. Might as well then. Thanks.

1

u/WalterGR Feb 08 '16

Few questions:

The description says the book focuses on SPAs. How useful will it be for someone developing traditional non-SPA websites?

What is the chance that feedback about the beta will actually be incorporated into the final release? April is only a couple months away and it seems like printing on paper would require a significant amount of lead time.

The site says that the physical book will be available "at a substantial discount" to people who buy the beta. What does that mean in real dollars?

Congrats on releasing the beta!

1

u/yogthos Feb 08 '16

The book covers the details of how the Ring/Compojure stack works, and basics of HTML templating with Selmer. I work through a very simple traditional style app at the start, and break down all the pieces. However, I don't really dive into how you would structure a larger non-SPA site.

I'm still making tweaks and any feedback would be considered before the final release. However, I probably wouldn't be making any major changes at this point.

Not sure what the discount is unfortunately, I'm not really in the loop on the pricing.

And thanks, it's been a lot of sweat, so nice to see it finally out. :)

1

u/WalterGR Feb 11 '16

What resource would you recommend for learning Luminous for the purpose of creating normal websites?

1

u/yogthos Feb 11 '16

Aside from the book, the official documentation on the site covers most of the basics. I'm not sure if there are any other resources specific to Luminus.

0

u/[deleted] Feb 02 '16

[deleted]

1

u/[deleted] Feb 02 '16

sigh, so it's delayed. Been waiting for it since November. They changed it to February, I pre-ordered on Amazon. I guess April it is then.

1

u/babygetoboy Feb 03 '16

Thank you! I bought it and am working it from the very beginning. Only problem so far I have found is that the test in the first tutorial chapter isn't correct with the project we are setting up, it is still for users instead of messages.

0

u/[deleted] Feb 02 '16

[deleted]

4

u/yogthos Feb 02 '16

Thanks for the review. :)

I'd really like to add something on using OAuth with Twitter or GitHub, but I can't guarantee that I'll be able to get that in for the final release.

5

u/mallory-erik Feb 03 '16 edited Feb 03 '16

Just bought the beta. Looks great! OAuth 2 would be so fantastic. (Maybe with Google?)

I personally find authorization and security to be the areas of Clojure web dev where the path forward is haziest. They're also both areas where we can't afford to mess up... I'd happily buy a book on these subjects alone.

That said the current beta looks like it has the clearest explanation I've seen yet on authorization (uses the Buddy library), and good stuff about input validation.

2

u/billrobertson42 Feb 03 '16

An OAuth chapter would be golden.

0

u/[deleted] Feb 03 '16

[deleted]

1

u/yogthos Feb 03 '16

I haven't had a chance to really use boot for anything myself yet. It does seem to be picking up steam recently though. I'll have to test drive it one of these days. :)

0

u/[deleted] Feb 02 '16

[deleted]

6

u/planetmcd Feb 02 '16

I liked the first version. Yogthos, who is active on this forum, is the author. He also spearheads the Luminus 'framework' which is a good place to look.

0

u/[deleted] Feb 02 '16

[deleted]

4

u/yogthos Feb 02 '16

The beta is in a good shape. It's content complete, and all the sample projects should be in working order. The only difference in the final release will be additional polish, and you will receive updates as they come out when you get the beta.

2

u/payco Feb 02 '16

Would you say this is a good book for those who are unfamiliar with web development in general? I'm picking up Javascript for the first time in over a decade for a project at work, and would definitely prefer to work in clojure/script for the little ideas I have for personal web projects.

5

u/yogthos Feb 02 '16

The intent is that it should be. I start with simple examples, and build gradually on top of them. I tried to cover all the major aspects of web dev, so it should make for good beginner material.

I'm also of the opinion that the tooling is overall simpler for Clojure/Script than for Js.

0

u/[deleted] Feb 03 '16

[deleted]

0

u/[deleted] Feb 03 '16

[deleted]

1

u/billrobertson42 Feb 03 '16

It's not easy, but if you can do it decently, then you're doing fine.