News for hackers. Stuff that matters.
Re:I loved jQuery, and still do (2019) by rchaud on Tuesday June 29, 2021 @01:09PM (#27678745)
In your example, switching from jQuery was just a matter of personal preference. There's nothing wrong with that.

My original comment left out some context: on HN, a lot of the hostility to jQuery is either cultural or gatekeeping oriented. Cultural opposition is of the 'not invented here' variety, e.g. 'Why use Dropbox when you could do this w/ rsync? Gatekeeping-related opposition is where it's implied that you shouldn't call yourself a dev if you use jQuery and not vanilla JS.

That is the kind of discussion that happens nearly every time a link to YMNNJQ is dropped.

Re:I loved jQuery, and still do (2019) by oatmealsnap on Tuesday June 29, 2021 @02:17PM (#27679670)
That's not how I see jQuery hate.

jQuery promotes bad development patterns, AND brings a cost for end users. Developers will do themselves and futures devs a favor by not choosing to use it. Is it really gatekeeping to expect people to be aware of commonly used 10 year old features?

I assume developers who share YMNNJQ are just sick of inheriting messy projects built with jQuery. I know I am.

Re:I loved jQuery, and still do (2019) by motogpjimbo on Tuesday June 29, 2021 @04:08PM (#27681059)
You've never inherited a terrible, unmaintainable React or Angular app? I have on multiple occasions, and in fact my team is dealing with one right now. I'd prefer a jQuery mess to an Angular/React mess any day of the week. With old-school jQuery apps, at least I can get them to build and can debug the control flow.
Re:I loved jQuery, and still do (2019) by heavyset_go on Tuesday June 29, 2021 @07:56PM (#27683330)
A couple of years ago I inherited a client's static site that was written in React before Next.js took off. It is a real accomplishment to make a static site as unnecessarily unmaintainable and convoluted as that one was.

Part of my screening process is making sure something like that doesn't fall in my lap again. Even static sites aren't safe these days.

Re:I loved jQuery, and still do (2019) by rchaud on Tuesday June 29, 2021 @04:30PM (#27681320)
> jQuery promotes bad development patterns

If you do web development as a job, it's your responsibility to stay up to date on what best practices are. With EC2015 being several years ago now, jQuery wouldn't be a learner's starting point today.

Those that developed bad habits during jQuery's heyday a decade ago may still be writing bad code. And it's someone else's job to clean that up. That's the circle of life, and it's hardly exclusive to jQuery users.

Re:I loved jQuery, and still do (2019) by thera2 on Tuesday June 29, 2021 @04:10PM (#27681088)
The article explains why jQuery doesn't promote bad development patterns. That is a consequence of bad development and a misunderstanding of what jQuery is.
Re:I loved jQuery, and still do (2019) by shkkmo on Tuesday June 29, 2021 @02:27PM (#27679798)
> it's implied that you shouldn't call yourself a dev if you use jQuery and not vanilla JS.

I've never seen that. The closest I've come to seeing that is that comments that imply that using jQuery indicates lower levels of experience as a developer.

> Cultural opposition is of the 'not invented here' variety, e.g. 'Why use Dropbox when you could do this w/ rsync?

How is that "not invented here"? That seems more like a preference for open source software.

I looked at submission history and I don't really see either of those attitudes prevalent in a quick scan of the comments:

https://news.ycombinator.com/from?site=youmightnotneedjquery...