Hacker News new | ask | show | jobs
by kaoD 3130 days ago
> state spaghetti

State is particularly hard to manage using jQuery because, unlike frameworks, it has no builtin way to deal with it.

The disconnect between DOM and JS state is what makes frontend programming a pain to deal with. This led to ad-hoc bug-ridden "state machines" (i.e. spaghetti global variables all over the place) that broke at the very first unexpected interaction.

If you're using a proper state machine (or your program is simple enough to not need them) you're better off just using the regular browser API.

jQuery brings nothing to the table in 2017. I'm willing to be proved wrong. Is there anything that jQuery vastly simplifies?