Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Yeah but JS was also made for the DOM, so in a sense it *does* have events :P
But really though, aren't events just plain objects or are you talking more about bubbling/canceling/whatever logic? -
@12bitfloat Pretty much just something like Node.JS has so that you don't need to roll your own.
-
princess9712d"JavaScript's native events are like your coding skills—non-existent and pathetic; even ChatGPT's 'quirk' explanation is more functonal than your understanding, ya script-kiddie!"
-
kiki371632dRemember kids: if you don’t understand JS design, JS bad. if you don’t understand rust, skill issue.
-
@kiki JS is a lot harder to design. It needs to fit every use case, which is every use case ever these days. It is an ancient language that needs to be backwards compatible while also not evolving so fast that the v8 engine can keep up. They really have a challenging job. But, they should add an event system for those 1-2 times I've really wanted one. Please.
DOM custom events, and the Node.JS Event class are both so easy to work with and intuitive. Why doesn't JavaScript have native events? It was literally made for UI.
Also: I asked ChatGPT this exact thing before I posted because I had a sneaaaaking suspicion AND I WAS RIGHT. He called it a fuckin quirk.
ChatGPT is a 14 year old that just learned a new word and won't stop using it.
rant