DEV Community

Discussion on: In-place editing with Dancer2 and jQuery

Collapse
 
bbrtj profile image
bbrtj

Sadlly jQuery is also perceived as something very outdated. But I guess you wanted to show how to do this without setting up all the stuff needed for a framework (npm, dependencies, webpack, necessary loaders to name some of them). That's a nice middle-ground

Collapse
 
davorg profile image
Dave Cross

Honestly I did it this way because I wasn't aware that jQuery was considered outdated. I'm not much of a Javascript developer and I still thought that my meagre jQuery skills were pretty neat.

But I've just been doing some reading and it seems you're right. Apparently most of the things that jQuery was useful are now included in standard JS.

So now I'm wondering if my next post in this series should just be updating the front-end code to use standard JS instead. And then, maybe, I could do another version using a front-end framework like React (or whatever's cool these days).

Oh. I've just remembered another reason why I use jQuery. As you'll see from this example, I often use Bootstrap to make my web apps look nice. And Bootstrap already brings in jQuery.

Collapse
 
bbrtj profile image
bbrtj

I'm not a js expert in the slightest, but if you want to use the newest JS features then you're probably going to webpack it too to make sure it will work on all browsers, and that requires some setup. JQuery is low effort, you can just add a jquery script to your page and use it right away. Other options require much more setup and I always found it rather tedious.

When it comes to frameworks, vue.js is pretty cool. You will probably like it if you liked jquery, since it does not necessarily mean writing single page applications and can just make it easier to write some regular JS elements on a page.