News for hackers. Stuff that matters.
Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by ng12 on Sunday May 21, 2017 @02:01PM (#14388307)
Are these types of frameworks basically just performant Marionette+Backbone? I always struggle to find a difference.
Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by kbr on Sunday May 21, 2017 @02:16PM (#14388384)
Moon is faster, only 6kb, has a more powerful templating engine, and a much simpler API. On the other hand, Marionette is a MVC library, and has more functionality.

Moon is just a view library, the other parts can be added in with moon-router [1] and moon-ssr [2].

[1] https://github.com/KingPixil/moon-router

[2] https://github.com/KingPixil/moon-ssr

Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by elnygren on Saturday May 20, 2017 @12:09PM (#14383026)
I had a very quick glance but it seems that RE:DOM is smaller, better documented and more mature (but probably otherwise similar). https://redom.js.org
Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by kbr on Saturday May 20, 2017 @12:31PM (#14383117)
Yes, but Moon's goal is to have syntax similar to Vue's, and as a result, requires an HTML template compiler, Javascript expression compiler, directive compiler, and different component logic.

RE:DOM doesn't have any of these, but only has a virtual DOM engine (which Moon has as well).

Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by shakna on Saturday May 20, 2017 @12:16PM (#14383060)
Moon's benefit, that I can see, is Vue's syntax.
Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by tenryuu on Saturday May 20, 2017 @09:16PM (#14385257)
with the difference between sizes being a few kb, I don't think that they would entirely matter. What really does is execution rate. Which one performs more efficiently. If the end result is DOM, it doesn't matter what syntax you're using, the client is the most important part
Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by sylentmode on Saturday May 20, 2017 @12:24PM (#14383093)
I honestly don't see much similarity
Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by BoorishBears on Saturday May 20, 2017 @02:56AM (#14381339)
Demo doesn't work on my iPhone 6 on iOS 10, I just get the template string
Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by shakna on Saturday May 20, 2017 @09:32AM (#14382279)
I wonder what Safari's problem is?

It works just as well as Vue on my Android in Firefox, Chrome and even the Android Browser.

Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by noir_lord on Saturday May 20, 2017 @10:54AM (#14382639)
> I wonder what Safari's problem is?

I wonder that a lot about Safari, particularly mobile Safari.

Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by kbr on Saturday May 20, 2017 @10:41AM (#14382574)
Not sure what the problem is, all tests for Moon pass on Safari, and it works on my iPhone 6s on iOS 10.

Can you let me know if any demos in the Getting Started[1] guide work?

[1] http://moonjs.ga/docs/getting-started.html

Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by BoorishBears on Saturday May 20, 2017 @07:27PM (#14384921)
I tried again on Wi-Fi and it worked, I was on a spotty LTE connection, it might have just failed to load
Re:Show HN: Moon – a tiny 6kb Javascript library inspired by... by kbr on Saturday May 20, 2017 @09:00PM (#14385208)
Must've been it, thanks.