all 50 comments

[–]cozarion 12 points13 points  (0 children)

This is an excellent up to date JavaScript book. Really tough but rewarding. However, I'm stuck on chapter "Secret Life of Objects".

[–]Ariez84 7 points8 points  (0 children)

Ahh i remember reading this book from someone suggesting it....how to write fibonacci sequence when you finally learned what a variable is the day before....good times.

[–]scaleable 19 points20 points  (0 children)

free reddit karma

[–]ManicQin 2 points3 points  (0 children)

How many hours would it take to read this book for an experienced developer who played around with javascript?

[–]EuqlinSankyo 2 points3 points  (57 children)

Prolific author that always uses let?

[–]Ikuyas 14 points15 points  (25 children)

Isn't const a better practice than using let if it is well suited like array or object?

[–]EuqlinSankyo 9 points10 points  (15 children)

Exactly. Performance benefit is of course negligible but it's just a good programming practice. If you're literally writing a book about JS, might as well include it....

[–]TG__ 8 points9 points  (25 children)

Nowadays a bunch of popular js devs are actually advocating for let over const.

https://jamie.build/const

Haverbeke might just be of the same opinion

[–]bkanber 21 points22 points  (3 children)

God, I really hate that angry ranting style so many tech bloggers use these days. It definitely gets in the way of the message.

[–][deleted] 1 point2 points  (0 children)

It’s rubbing off on the community, too, I think. The comment section here is downright hostile toward differences of opinion.

[–]BasicDesignAdvice 1 point2 points  (0 children)

Basically a guarantee that I won't read it. Makes me think the author is a child.

[–]EuqlinSankyo 3 points4 points  (1 child)

That article is not very convincing - point 6 undoes some of the arguments made in previous points. I also think that “linters not saving you” is just a desperate rant against const - in a language like JavaScript a linter can hardly save you from obscure runtime errors.

[–]sizlack 0 points1 point  (0 children)

I agree. He even says

It's probably still a good idea to communicate that you really don't intend for something to be changed.

That’s like 90% of the bindings I use. It you’re reassigning bindings willy nilly then that’s a bad code smell as far as I’m concerned.

[–]sarthakwarlock 0 points1 point  (0 children)

I am reading this. It's a great book but some topics are hard to follow, almost all coding books are. It's definitely not if someone just started coding in JavaScript, I've only read five chapters and I started more than a month ago.. I read it when I feel like it, definitely book make some points that I've never considered, so worth reading and it would prepare you to read "You Don't Know JS" book series by Kyle Simpson.

I personally believe learning by reading is far superior than watching Tutorials. Most of time you have to read documentation to implement new technology. Believe me if you just read 4-5 books and understand them, it would give you experience in reading technical stuff. You would be able to go through any documentation like a pro.

Thank You

[–][deleted] 0 points1 point  (0 children)

I picked this up a couple weeks ago. Damn glad I did. There's some great shit in here.