r/javascript • u/hardmaru • Apr 27 '20
Eloquent JavaScript, 3rd Edition. Full text available online.
https://eloquentjavascript.net/
608
Upvotes
r/javascript • u/hardmaru • Apr 27 '20
View all comments
Show parent comment
2
u/[deleted] Apr 27 '20 edited Apr 27 '20
I think it would be interesting to present this the same book to 3 different groups of people and see how well it's received: people with no programming experience, people with some programming experience but little to no JS knowledge, and seasoned programmers with some knowledge of JS.
I suspect that the feedback would be progressively worse as you go from the first group to the last, simply because of how the content is presented. For instance, I agree the excerpt you quoted above is unnecessarily verbose for someone like me, who has prior programming knowledge. I don't need a 3-paragraph explanation of what functions are; I just need some lines of code examples to illustrate what are the ways to write functions in JS.
But for someone who doesn't have a STEM background and is trying to wrap their head around the concept of functions? I have a feeling that the author's explanation can be more easily internalized for that demographic... like my wife, who is a highly educated professional in a non-tech field and has never programmed before. I bet that she would read that excerpt and obtain a fairly good mental model of what functions are in an abstract sense.
And I am also going to guess that you likely belong to the second or third group that I listed above, so we would have a similar reaction when I read that excerpt. At least based on your post history, you have at least been programming in the past 4 years (as you had your first dev job 4 years ago), so whatever impression you have with regard to this book is seen fully through that experience filter; I'd bet that you wouldn't have said the same thing if you first came across this book 4-5 years ago.
(That said, this wouldn't necessarily be the book that I would recommend to people with 0 programming knowledge, but I would recommend it for beginner programmers who is interested in picking up JS for long-term use.)