Live data from Hacker News

Show HN: HyperApp – 1k JavaScript framework for building web applications

github.com

21–30 of 169 posts

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#21
I love hyperapp! As someone who thinks Elm’s architecture is ideal for building webapps, it’s great to be able to almost replicate it in JS. It’s simple enough to get started quickly but still robust enough to build actual apps and not just toys.

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#22

This looks pretty awesome! Inspired by hyperscript I assume? https://github.com/hyperhype/hyperscript Question: I was looking over the source and noted that you weren’t building your virtual dom with the document fragment API https://developer.mozilla.org/en-US/docs/Web/API/DocumentFra... Is there any particular reason why? I’m curious because it’s my general understanding that creating a document fragment and attach…

I have heard that as long as elements aren't actually in the DOM, they are as fast as fragments, so you can use document.createElement instead of fragments. No idea if that's true or not.

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#23

This one is 25 bytes gzipped http://vanilla-js.com/

You do realize that this is simply a page that advocates using plain JavaScript and isn’t an actual “framework” right? I mean I can see the point you are trying to make, but it feels mildly disingenuous to link to this without explaining what you really mean.

People really enjoy pulling this up every time a JS framework is talked about, and it's really tiring.

I say this as someone whose entire job is writing "vanilla JS" without any sort of framework!

People do have a tendency to overdo tooling and lean too heavily on frameworks to get things done, but if you're building something without one you end up creating a lot of abstractions and boilerplate yourself to do anything relatively advanced and end up with a micro-framework of sorts at the end of the day, not unlike what was posted here! There's a lot of value in taking something small like this and building off of it.

Just linking to that vanilla JS site is snarky and unproductive.

Re: Show HN: HyperApp – 1k JavaScript framework for building web applications

#26
post #18

How does this compare to Inferno, which you can also use JSX and Hyperscript with - https://github.com/infernojs/inferno This seems smaller in footprint, but does it also win in runtime performance and stability?

Hyperapp can use JSX via the transform-react-jsx plugin.
Post reply on HN