3 ms·
Plain JS is the same. How often do you search something and find the 2012 way includes copying a 20 line util function and the latest way has it built in to the
by jdnenej 7y ago
Plain JS is the same. How often do you search something and find the 2012 way includes copying a 20 line util function and the latest way has it built in to the language.
- xyzzyz 7y agoEasy, just don't write JS. For most sites, there's hardly any need for it. On HN, for example JavaScript is only 150 lines[1]. [1] - https://news.ycombinator.com/hn.js https://news.ycombinator.com/hn.js
- jdnenej 7y agoAnd you can tell. The page reloads when you want to edit a comment. Also hacker News is one of the simplest use cases ever.
- xyzzyz 7y agoThe page reloads when you want to edit a comment. Yes, and it takes less than a second (checked in Chrome performance console) to do it. I'm happy with that. Also hacker News is one of the simplest use cases ever. Note that 95% of Facebook by usage (scrolling through feed, liking and commenting) doesn't have much more functionality than HN.