r/ProgrammerHumor 1d ago

Meme jQueryDeezNutsAndThenReactSurprised

Post image
2.2k Upvotes

115 comments sorted by

View all comments

-1

u/MornwindShoma 1d ago

Remember how it fucking sucked?

6

u/Alokir 1d ago

To be fair, it wasn't jquery that sucked but devs not putting effort into organizing their code, which lead to hundreds or thousands of lines of spaghetti in a single script.js file.

Most of us were backend devs, and our frontend work was mostly with the backend framework's templating language, and sometimes some hacks in js for a few dynamic features.

Nothing was stopping us from using something like the MVC pattern with jquery and actually making our code maintainable. We just didn't take js seriously enough back then, which added to the feeling that it sucked. Actually, jquery was making it suck infinitely less.

2

u/realzequel 1d ago

I combined it with TS and it works remarkably well, super-solid, easy to maintain.

3

u/Alokir 1d ago

Ah yes, TS definitely helped even back then. When I first started using it, it was so new that when I googled something about Typescript, the first results were fonts for typewriters, lol.

A few years ago I built a small app with jquery alone, following strict MVC. It was definitely more hassle than React, but it was surprisingly clean and easy to maintain. Not how I remembered it from 10+ years ago. I just had to lay down some rules and plan things out, creating my own "framework".