News for hackers. Stuff that matters.
Re:JavaScript Allongé, the "Six" Edition by sqren on Wednesday April 10, 2024 @01:32PM (#39993449)
This is a five year old book. Am I missing something?
Re:JavaScript Allongé, the "Six" Edition by cstrahan on Wednesday April 10, 2024 @04:33PM (#39995414)
If what you mean by “am I missing anything?” is “am I missing out [if I haven’t/won’t read it]?”, then possibly, yes. The concepts are timeless, and depending on what you already know, you may learn something useful, or at the very least something stimulating.

I read the first edition way back when, and thoroughly enjoyed it.

Re:JavaScript Allongé, the "Six" Edition by whitepoplar on Wednesday April 10, 2024 @01:55PM (#39993754)
It's a great book!
Re:JavaScript Allongé, the "Six" Edition by explaininjs on Wednesday April 10, 2024 @01:33PM (#39993462)
Picking an example at random: https://github.com/raganwald/javascript-allonge-six/blob/mas..., I'm not sure what the real purpose of the book is... it seems to present overly elaborate ways to implement basic "good" algorithms, followed by a simple way to implement the parallel naïve algorithm. And it fails to provide a comprehensive summary of the potential benefits of the naïve algorithm, in this case that fewer cells would need to be read out (the person could be reading out commands for twice as long in the "good" algorithm!).

I'd much prefer to have the simple and good implementation, or one that starts out simple and works towards complexity based on explicit optimization tradeoffs, but that would appear to be outside of the scope of the book.

Re:JavaScript Allongé, the "Six" Edition by hajile on Wednesday April 10, 2024 @02:33PM (#39994140)
The book is primarily good at introducing the basic concepts of functional programming. It’s also one of the best for that in my opinion.

You wouldn’t use the quicksort from your textbook in production because it’s an example designed to teach specific principles. A complete tour of the literature on just that one story and all its variants and implications be a decent sized book all by itself.

Likewise, the examples inJS Allonge are vehicles to explore functional concepts.

I’d also note that there’s a PDF available for free.

http://raganwald.com/assets/javascriptallongesix.pdf

Re:JavaScript Allongé, the "Six" Edition by explaininjs on Wednesday April 10, 2024 @04:59PM (#39995660)
I'd be more willing to give the book the benefit of the doubt if it wasn't so blatant in proposing that the solution he likes is the Really Good Solution that has no downsides besides being "hard to understand". As if that wasn't a major downside in and of itself.

That said, being annoyingly cock-sure when you have the chops to back it up with an actual ideal solution is one thing, the same attitude when you present a questionably engineered algorithm and blatantly disregard its drawbacks (up to ~2x higher runtime / more "reads" needed to generate an answer) by implying only the less intelligent "non-artisans" would ever fail to appreciate it is entirely different.

Re:JavaScript Allongé, the "Six" Edition by dang on Wednesday April 10, 2024 @01:38PM (#39993524)
Related:

JavaScript Allongé is free - https://news.ycombinator.com/item?id=6476337 - Oct 2013 (51 comments)

Re:JavaScript Allongé, the "Six" Edition by explaininjs on Wednesday April 10, 2024 @01:42PM (#39993568)
This version should have [2019] in the title.
Re:JavaScript Allongé, the "Six" Edition by dang on Wednesday April 10, 2024 @01:47PM (#39993622)
Ok, we'll go with that. It's always hard to tell which year should apply to later versions of a thing.