News for hackers. Stuff that matters.
Re:Show HN: LemonadeJS – A micro JavaScript library for buil... by cutler on Monday August 16, 2021 @03:58PM (#28202173)
Looking at the site's example:

https://lemonadejs.net/v1/examples/hangman

... I see a lot of ugly ES5 code where everything is prefixed with self. How is this progress?

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.