News for hackers. Stuff that matters.
Re:Deep JavaScript: Theory and Techniques by mayank on Wednesday June 17, 2020 @10:59PM (#23559372)
Unfortunately, the language has changed so much in recent years that I wouldn’t necessarily recommend that book anymore. A large number of fundamental features have been introduced since 2008, including async/await, lambda functions, class and extends syntax, proxies, and a ton of builtin methods like map() and forEach() on native list types.
Re:Deep JavaScript: Theory and Techniques by jmchuster on Wednesday June 17, 2020 @11:56PM (#23559669)
For sure, these were the old days before jQuery was even considered a standard library. It was still duking it out with YUI and Prototype.
Re:Deep JavaScript: Theory and Techniques by chrstphrknwtn on Thursday June 18, 2020 @01:52AM (#23560169)
I'm fairly sure Lambda functions have always been part of javascript?
Re:Deep JavaScript: Theory and Techniques by croddin on Thursday June 18, 2020 @02:02AM (#23560208)
Anonymous functions indeed have. I think he means the arrow function syntax.
Re:Deep JavaScript: Theory and Techniques by mayank on Thursday June 18, 2020 @11:35AM (#23564043)
Yes, my bad. I meant arrow functions.
Re:Deep JavaScript: Theory and Techniques by ulucs on Thursday June 18, 2020 @02:00AM (#23560206)
function () {}'s have been there forever, but () => {}'s have different semantics and are somewhat new