News for hackers. Stuff that matters.
Re:The triple dot syntax (` `) in JavaScript: rest vs. spread by have_faith on Sunday May 08, 2022 @02:07PM (#31306488)
Isn’t jQuery mostly dominant in stats because it’s included in WordPress by default (definitely in 90% of Wordpress themes). It’s been a while since I checked so this could be out of date.
Re:The triple dot syntax (` `) in JavaScript: rest vs. spread by MBCook on Sunday May 08, 2022 @02:20PM (#31306607)
Until very recently it was also a dependency of Bootstrap. That’s why it’s in my project (can’t upgrade yet).
Re:The triple dot syntax (` `) in JavaScript: rest vs. spread by mst on Sunday May 08, 2022 @05:21PM (#31308249)
When using classic Angular (some time ago) with Bootstrap I ended up rewriting the JS parts of any bit of Bootstrap we used as Angular components for ease of debugging (I know lots of people hated Angular but it was still easier to only debug one framework-ish thing at once).

The existence today of e.g. react-bootstrap suggests that I'm not the only one to have had this idea.

Re:The triple dot syntax (` `) in JavaScript: rest vs. spread by wikidani on Sunday May 08, 2022 @07:38PM (#31309043)
>I know lots of people hated Angular

Why would they hate on angular? Isn't just another framework

Re:The triple dot syntax (` `) in JavaScript: rest vs. spread by tweetle_beetle on Sunday May 08, 2022 @03:12PM (#31307181)
Yes, it's in core. And was only upgraded from a very outdated version fairly recently ( in terms of its lifetime) - https://make.wordpress.org/core/2020/06/29/updating-jquery-v...
Re:The triple dot syntax (` `) in JavaScript: rest vs. spread by duxup on Sunday May 08, 2022 @10:13PM (#31309769)
I bet bootstrap has something to do with it too.