Why are JS frameworks so darn complicated? I can't even keep a mental model of a simple table with a few buttons. I need to add so much boilerplate code that I'd rather use jQuery. Either I'm missing something blindingly obvious about those frameworks, or they're just added complexity and weird patterns with marginal gains.

@afilina Some complexity is needed as JS has more weird corners than PHP3 does.
What version of JS/TS are you using (i.e. webrowser)?

I think the JS framework people like to prove how-much software engineering they are. (see enterprise comment by@[email protected])

Yes the RAM use is miserable in Electron

@afilina Just use jquery :-)
@derickr I would if it were my project. I still have a ton of sites and apps I built that run on jQuery without any bloat.
@afilina @derickr How exactly isn't jquery itself bloat?
@danrot @derickr The jQuery slim build has a pretty small footprint.
@afilina @derickr the smallest number I found using google is 6kb, which is IMO quite a lot, considered it does not add a lot of value (if any) compared to modern JavaScript and its APIs.
@danrot @derickr I suppose I'd need to revisit vanilla JS to see how it evolved. It may very well be that a lib is not even needed.
@afilina @derickr https://youmightnotneedjquery.com/ is a nice starting point for that πŸ™‚
You Might Not Need jQuery

Examples of how to do common event, element, ajax and utility operations with plain javascript.

@afilina It feels to me like JS frameworks assume everything they touch is an enterprise application.

"So, you need two buttons, and a table with four cells that maintain state? Great. We're going to need a 7 step build process, a deploy process, a dedicated webserver, and four gigs of ram. Minimum."

@afilina trying to avoid js frameworks, just something else to maintain
@afilina join us in the church of HTMX!
@dolanor I'll take a look at it. Thanks for the suggestion.
@afilina what's wrong with using jQuery? Things like React, Angular, Vue, whatever I find so over complicated too!
@asgrim @afilina Honestly, most of what jquery provided can be done easily in vanilla js anymore... Which is what I've started doing again, as who needs MBs of code for a simple fetch + inject into DOM operation...

@asgrim I would choose jQuery over these bloated frameworks any day! I'm just stuck with Next.js legacy.

I remember coding a basic lib in jQuery so that values could stay in sync (elements would refresh themselves upon data mutations). My team built a very big interactive app on top of it that is now generating serious cash for the company.

This was when Angular 1 was still mostly unknown. Since then, it only went downhill. People underestimate how much *more* code they write with a framework.

@afilina If you are proficient in a server-side stack (no question, you are) then HTMX is a fresh breeze.