DEV Community

[Comment from a deleted post]
Collapse
 
imthedeveloper profile image
ImTheDeveloper • Edited

Whilst I have enjoyed using Vue.js recently as a drop in replacement for my old JQuery code. There are instances where I'm actually still using JQuery heavy. I'm currently building a number of User Scripts to manipulate the pages in a browser game that I play. It just so happen that those old pages already have JQuery code on them, so it makes more sense for me to just hook into the pre-existing libraries that those pages use rather than injecting in something new.

Why do I continue to use JQuery? Because I am a huge fan of libraries. This is not to say that I am ignorant of the underlying code and I'm against being a 'purist'. However, I firmly believe frameworks and libraries speed up my development and abstract away cluttered code making a lot of my work READABLE.

I often liken the argument around the heavy usage of libraries to that of my Car. I wake up everyday, get in my car and I turn the key to drive to work. I care very little around all of the hard work to wire the car together, nor do I care about how long an engineer has spent designing and prototyping the dials I look at every so often. What I care about, is that when I turn the key it starts and I can drive to work. When something goes wrong, I know I don't have the skills to fix very deep underlying issues (as we see in libraries that have issue boards/defect trackers asking for help to fix bug x y z), so I take it to a garage and ask the manufacturer to fix it for me. For simple issues like a tyre being blown or needing to replace a bulb, I know how to make the fix and guess what I believe the time spent fixing those small things are worth my time. Whereas a blown engine, sorry you arent worth my time I can't dedicate hours learning all about engine internals when I can be productive on another aspect of my life.

I know this will maybe anger some people, and it's all a persons perspective. The exact same reason people choose to heavily modify and rebuild their cars. Whereas I would rather buy the package I wanted and get on with it.

It's ok to have differing views, and it's ok to love those old time classic cars without jumping to the newest 2017/2018 models just because they get great reviews. Note: You can replace every car example here with JS libraries and you get the point ;)

Collapse
 
belhassen07 profile image
Belhassen Chelbi

yes It's ok to have different views, this is why I shared my point of view and I've used jQuery and I didn't jump"to the newest 2017/2018 models just because they get great reviews" , I have my reasons to stop using jQuery and I mentioned them.
It's not me attacking jQuery saying it's useless but I did demonstrate where jQuery can be harmful.

Collapse
 
imthedeveloper profile image
ImTheDeveloper

My reply was in no way meant as an attack at your post :)

 
belhassen07 profile image
Belhassen Chelbi • Edited

Yes I know, I'm just saying that my post doesn't have the purpose of attacking jQuery, thanks for sharing mate ♥