Idiots should stay away from jQuery

Consider this one of my first real lessons of writing code. Idiots should stay away from jQuery.

I’m sure by this time in internet history this is well documented phenomenon.

I got a job, wrote a bunch of form validation in jQuery like an idiot. No functions, just purely procedural. Now I have to clean it up. It’s gross, disgusting, and disturbing.

I knew I was an idiot. (Still am, in many aspects.) But jQuery makes it’s insanely easy for idiots like me to write horrible code.

If you write code in Javascript, at least you begin to think “Huh, I should break this into functions”. This doesn’t exist in jQuery, because of callback structure. It encourages you to write twisty ugly code, that will be the bane of your existence later.

jQuery is NOT for idiots. If you are an idiot, please do not write jQuery. You will regret it later. Use ES6, or plain old JavaScript.

Also, learn to write code and some programming patterns.