News for hackers. Stuff that matters.
Re:Bootstrap 5 alpha by mjtlittle on Wednesday June 17, 2020 @04:30AM (#23549154)
Its an extra (30kb) dependency for many projects that can solve the same problems using vanilla javascript with the same amount of friction
Re:Bootstrap 5 alpha by cooper12 on Wednesday June 17, 2020 @11:31AM (#23552604)
Unfortunately vanilla JS is much less readable. JQuery function names make your intent very clear and chaining them is elegant. Also, very minor, but the "magic" (syntactic sugar) provided by `$()` compared to `document.querySelectorAll()` et al. makes using JQuery seem much more frictionless, especially since you know if you're using it, all the functions will work on whatever you selected and can also take HTML strings, etc.

One thing vanilla JS does have going for it though is performance. I profiled a script of mine and rewrote all the bottlenecks using native JS and it's undoubtedly faster.

Re:Bootstrap 5 alpha by democracy on Wednesday June 17, 2020 @09:35AM (#23551175)
And many projects/people don't care about not supporting anything but the latest chrome, so yes, for them it's a legacy.
Re:Bootstrap 5 alpha by niclo on Wednesday June 17, 2020 @11:35AM (#23552659)
Most if not all the modern frameworks/projects use Babel to compile modern Javascript to the es5 standard from 2009. I guess 11 years of browser backwards compatibility are enough, or should we downgrade and support IE 6 ?
Re:Bootstrap 5 alpha by democracy on Wednesday June 17, 2020 @07:39PM (#23558138)
its not about js compatibility it is more about platform / browser specific glitches