DEV Community

Discussion on: YoffeeJS: Yet another Javascript framework. But this one's good, I think

Collapse
 
daweet profile image
Numbnut

It's the most powerful in terms of being lower-level. I like your example, it's simple and it's elegant with vanillajs. But what about when you wanna update some other stuff that's not the button you just clicked? Do you really wanna write querySelectors all day long? And what about lists? Constructing and replacing the HTML as a string is extremely slow, so to match Yoffee's performance you will have to keep references to DOM Nodes that you'd like to update at some point. What about multiple UI elements that depend on a single property? What about a UI element that is dependent on multiple properties?
All is possible with vanilla JS, but your code would be much longer and much less self explanatory, I'm afraid.

Collapse
 
dannyengelman profile image
Danny Engelman

Use Github Copilot to write code for you