Re:Show HN: LemonadeJS – A micro JavaScript library for buil...
by kennywinker on Monday August 16, 2021 @12:18PM
(#28199800)
Mithril has a detailed “why this instead of react/vue/etc” article https://mithril.js.org/framework-comparison.html that I think should be mandatory for any library entering a crowded space like this. If only because i want to know the priorities of the developers.
Re:Show HN: LemonadeJS – A micro JavaScript library for buil...
by kennywinker on Monday August 16, 2021 @09:57PM
(#28205233)
No, but communities can set expectations, and then someone can choose to meet or buck the expectations of the community at their own risk.
A good example of this is the TodoMVC convention. Instead of making "whatever demo app you choose" a convention developed to make a Todo app, so that people could compare frameworks in a more "apples-to-apples" way. A new framework with a Todo demo would likely get more traction than a framework with a Calendar demo, because it's easier to evaluate and understand how it works.
Re:Show HN: LemonadeJS – A micro JavaScript library for buil...
by lloydatkinson on Monday August 16, 2021 @11:31AM
(#28199253)
Kind of mixed. In Vue, two way bindings are achieved with the v-model directive but that is literally the syntax sugar equivalent of having a prop and an event.
That is, the two way binding with v-model is no different to doing it "manually" anyway.
Re:Show HN: LemonadeJS – A micro JavaScript library for buil...
by shakezula on Monday August 16, 2021 @12:03PM
(#28199601)
Vue handles it the best way, imo. Svelte does a decent job, too. I think it's basically at the point where it's considered the standard now, though, and basically every library just has it's own take on how to do it.
Re:Show HN: LemonadeJS – A micro JavaScript library for buil...
by kansface on Monday August 16, 2021 @11:39AM
(#28199348)
Personally, it tends to be convent in practice for forms but is an unholy abomination elsewhere. I'd eschew it altogether and deal with the extra verbosity when it crops up.
Re:Show HN: LemonadeJS – A micro JavaScript library for buil...
by montroser on Monday August 16, 2021 @08:07PM
(#28204524)
What you are criticizing is (the fashion of) the example app there, not the functionality or interface of the framework itself.
The lemonade.element function just wants a template and an object with some methods. Whether you use ES6 classes or proxies, or ES3 constructor functions with prototypical inheritance, or object literals to define that object is a matter of taste, and it is all up to you.
A good example of this is the TodoMVC convention. Instead of making "whatever demo app you choose" a convention developed to make a Todo app, so that people could compare frameworks in a more "apples-to-apples" way. A new framework with a Todo demo would likely get more traction than a framework with a Calendar demo, because it's easier to evaluate and understand how it works.
https://codebase.show/projects/realworld
https://github.com/gothinkster/realworld
https://alpinejs.dev/
That is, the two way binding with v-model is no different to doing it "manually" anyway.
https://lemonadejs.net/v1/examples/hangman
... I see a lot of ugly ES5 code where everything is prefixed with self. How is this progress?
The lemonade.element function just wants a template and an object with some methods. Whether you use ES6 classes or proxies, or ES3 constructor functions with prototypical inheritance, or object literals to define that object is a matter of taste, and it is all up to you.
https://lemonadejs.net/v1/examples/hangman