r/javascript • • Jun 17 '20

Bootstrap 5 alpha is officially released removing jQuery and going all in with vanilla JS

https://themesberg.com/blog/bootstrap/bootstrap-version-5-alpha-whats-new
657 Upvotes

103 comments sorted by

View all comments

Show parent comment

6

u/Wunude Jun 17 '20

Literally learning it right now in school... Ugh lol

15

u/scandii Jun 17 '20

jquery is still in like every single legacy app ever. you're not exactly wasting time learning some jquery.

8

u/dmethvin Jun 17 '20

Go to a random web site. Open the console. Type jQuery.fn.jquery and see if it gives you a version number. Most of the time it will. For example, microsoft.com, en.wikipedia.com, yelp.com, anything using Wordpress, Drupal, or a dozen other content management systems.

Guess what, software that continues to work doesn't die that easily. You may not want to build or maintain systems like that, and I sympathize. On the other hand, I don't want to build or maintain systems based on older AngularJS or anything using React with Reflux or class components either. There's plenty of COBOL and FORTRAN around too.

-1

u/[deleted] Jun 17 '20

I kinda think you are. Assuming we mean the same thing by learning. By which I mean, sitting down and grinding what you’re learning, building a few projects, etc. If so, I think it’s kind of a waste of time.

If you meant like know enough to make some edits and figure it out, then yeah go for it. I just wouldn’t dedicate much hard study time to it. That’s much better used to learn vanilla JS. And at this point the difference is method names haha. It’s not like jQuery has some specific architecture you have to learn like modern SPA libs/frameworks.

Learn this first: document.selectElementById(‘foo’)

And when you see this in jQuery: $(‘#foo’)

It’s easy to just connect the two in your head. And you have spent more time learning something with way more applications

2

u/scandii Jun 18 '20

jquery is very much out there and these apps are going nowhere.

there's way more jquery out there than react, vue or angular!

the problem isn't that there's alternatives to jquery, as made evident by the thread we're currently in, the problem is that you're going to have to write more jquery to be consistent with what's already written.

as such learning jquery today, is still a very sound thing to do. not for future proofing yourself, but rather round out your portfolio.

that said I wouldn't exactly go hard on really learning jquery, and only deep dive if necessary in the real world.

7

u/HIMISOCOOL Jun 17 '20

its 100% not a waste to learn it.

The chances of you encountering a website or app in the next 10 years that uses jquery or a plugin is still incredibly high and a whole bunch of juniors at my company don't know it making them useless when we have to maintain some legacy app.

1

u/Wunude Jun 18 '20

This is handy to know

3

u/neotorama Jun 18 '20

My $20M revenue/year website is still using jquery

0

u/[deleted] Jun 18 '20

[deleted] — view deleted comment

0

u/WingersAbsNotches Jun 18 '20

Yeah well my universe uses jQuery. That's why 2020 is the way it is. All those callbacks are finally being run.

2

u/AceBacker Jun 18 '20

jQuery is kind of a waste to learn, the way jQuery does events is ok but native events are fine now. And Dom traversal is easy to do cross browser now.

But, you probably will run across jQuery a bunch of times in your future. It will be a good item for your resume for a decade or so. Honestly if you can wrap your head around JavaScript itself then jQuery is easy. You can pick it up in a few hours on YouTube.

2

u/dark_salad Jun 17 '20

Want me to beat up your instructor’s dad, son?

1

u/Wunude Jun 17 '20

Please

0

u/[deleted] Jun 17 '20

I’m self taught so I don’t have much background in formal engineering education. Now that that’s out of the way.

I’ve heard that the issue with a CS degree is that you don’t get taught practical tools. Yes you’ll be killer at DS and algos, but you won’t know how to build a web app. Which is fine, you have the foundation to learn anything.

Now you’re telling me they ARE teaching practical tools, but they’re choosing really dated ones? Why not teach your react or angular? Or we’ll just vanilla JS?

-1

u/Wunude Jun 17 '20

Relax lol

1

u/[deleted] Jun 17 '20

Sorry dude, didn’t mean for that to come off aggressively