[HN Gopher] Show HN: LemonadeJS - A micro JavaScript library for...
       ___________________________________________________________________
        
       Show HN: LemonadeJS - A micro JavaScript library for building web
       interfaces
        
       Author : hodware
       Score  : 41 points
       Date   : 2021-08-16 11:18 UTC (11 hours ago)
        
 (HTM) web link (lemonadejs.net)
 (TXT) w3m dump (lemonadejs.net)
        
       | bemolator wrote:
       | I'm learning how to use it, and it is pretty awesome imo
        
       | marz0 wrote:
       | Looks interesting, but I think for a minimal JS framework I'd
       | probably go with AlpineJS. It's pretty much Vue without
       | components.
       | 
       | https://alpinejs.dev/
        
       | aitchnyu wrote:
       | Umm, why do new microframeworks constantly capture HN attention?
       | I'm trying to understand the ecosystem between Vue and VanillaJS.
        
         | [deleted]
        
         | chrisrickard wrote:
         | Because there was once a time when Vue was being introduced on
         | HN. They need to start somewhere.
        
         | paulhodel wrote:
         | LemonadeJS is pretty much vanilla, no depencies, no
         | transpiling.
        
           | brundolf wrote:
           | When people say "VanillaJS" they typically mean "no
           | framework, just browser APIs"
        
             | paulhodel wrote:
             | Exact, you can run under the browser. No framework.
        
               | brundolf wrote:
               | Right but it itself is a framework. When people say
               | "vanilla JS" they typically mean building an _app_ with
               | just browser APIs.
        
           | gremlinsinc wrote:
           | how's it compare to alpinejs and stimulus?
        
       | scns wrote:
       | It looks really nice IMO, simple in a good way. A real world
       | appliction as an example would be great though.
        
         | paulhodel wrote:
         | A developer sent this one, which it is quite simple and
         | interesting.
         | 
         | https://lemonadejs.net/v1/examples/hangman
        
       | kennywinker wrote:
       | 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.
        
       | maficious wrote:
       | F*ck, another one!?
        
       | cutler wrote:
       | 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?
        
         | [deleted]
        
       | paulhodel wrote:
       | Lemonadejs is a super lightweight vanilla javascript micro-
       | library (4Kb). No dependencies, just Vanilla JS.
        
       | yewenjie wrote:
       | So what is the current opinion of the JS ecosystem on two-way
       | bindings?
        
         | lloydatkinson wrote:
         | 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.
        
           | shakezula wrote:
           | 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.
        
         | kansface wrote:
         | 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.
        
       ___________________________________________________________________
       (page generated 2021-08-16 23:02 UTC)