DEV Community

Discussion on: Ready to move from jQuery to shiny reactivess?

Collapse
 
kemalemin profile image
Subliminal Hash

Hello Chris. No offence. jQuery is there, it will be still be there for years to come and I will keep using it until its wiped out from this world unless otherwise there is a "real" reason for my own needs to do so otherwise. I see jQuery as a convenience library that takes away the burdon of thinking too many scenarios away from my shoulders. I mean I am not against using plain javascript but then $('.someclass') selector is enough for me to stick using it. Otherwise I would still have my own convenience function to do exactly what $('.someclass') does. $.each is another - although i will admit I prefer plain javascript depending on the scenario.

My opinion is for developers to use whatever works for them and their team the best. jQuery is not an evil. You might want to call it that but that does not make it an evil.. You may be coding in plain javascript and the whole thing might be evil itself. What we should be promoting for devs to do is to learn clean coding whether it be jQuery or javascript or any other language for that matter.

Collapse
 
arxhtects profile image
Archtects

I 100% agree with you. I'm a Web developer and designer. I make apps in react. But Tbh when it comes to websites. The amount of jquery I have to write is minimal. I have written animation sequences that are triggered by add class remove class. I don't see the need for other frame works Tbh. Jquery will be around for years to come. I think alot of people hate it. But it's incredibly useful and as you said convenience If It didn't have a simple class selector $(".class") I'd just make my own.

Collapse
 
chrisczopp profile image
chris-czopp

Thanks for the comment. I'm rather against direct DOM manipulations. When worked with React I was finding inconvenient to add/remove classes etc. However, when I started working with SolidJS, there is a very neat concept called signals and it's useful for managing local state. Similar to React hooks but conceptually even simpler. Still, I can imagine jQuery makes sense when having HTML pages with some animations. On the other hand, the tool I've been building is exactly about using HTML and give that simple experience. OK, it's slightly extended by useful attribute directives and Solid's signals but still much closer to basics than any modern framework.

Collapse
 
chrisczopp profile image
chris-czopp

Thanks for sharing your thougts. I see your point, I think jQuery can be used in a clean way but it requires a lot of self-discipline. And I think it's something unrealistic to expect from newcomers. Ultimately we get poorly made websites made by people who don't know plain JS. But, I guess I might be a bit radical and there are simple cases when jQuery just works...