News for hackers. Stuff that matters.
Re:Teaching the Unfortunate Parts by bastawhiz on Monday December 28, 2020 @10:28PM (#25566432)
Some pedantry:

> And JavaScript has always had a map method on arrays, which transforms the array's values into other values.

This isn't true. We only officially got this with ES5, which only came out in 2009. And we couldn't meaningfully use them until IE9 was released with ES5 support in 2011. And even then folks still had to support old IE for quite a while: it wasn't until around 2013 (after IE11's release) that ES5 use really picked up. Until then, we had Underscore.js and jQuerys' map methods, and various polyfills/shims.

Looking at the web today, you'd be forgiven for forgetting that most of the "cool" stuff is less than ten years old.

Re:Teaching the Unfortunate Parts by simlevesque on Monday December 28, 2020 @10:57PM (#25566562)
I 'm far from old and I remember that time. For loops everywhere.
Re:Teaching the Unfortunate Parts by gary_bernhardt on Wednesday December 30, 2020 @07:43PM (#25588196)
Thanks, I updated the post. I've been using JS since the 90s so I'm not sure how I managed to forget that!