Live data from Hacker News

VanJS (Vanilla JavaScript): smallest reactive UI framework

github.com

41–50 of 214 posts

Re: VanJS (Vanilla JavaScript): smallest reactive UI framework

#43
post #32

Earlier quoted context omitted.

You're mixing metaphors there! It might be lightweight but it's still a flavour. It's still not part of the common browser API, so yes it's easy to add, but no, it's not vanilla.

> it's still a flavour. > it's not vanilla. Hate to interrupt, but vanilla is a flavor. And it's a pretty good one, dammit!

Insofar as the discussion on the name "vanilla javascript" goes, this mixes metaphors.

"Vanilla JavaScript" implies "without anything added".

Re: VanJS (Vanilla JavaScript): smallest reactive UI framework

#46
post #26

I really don't want to be that guy, but... Vanilla JavaScript already exists as a popular term for JavaScript without any framework. No jQuery, no React - just JavaScript. Calling a library VanJS (as short for "Vanilla JavaScript") is just going to cause confusion. The repo's own description uses the phrase vanilla JavaScript in this way, and even mixes both meanings within a single sentence. If the author likes the…

So now we have a framework that doesn't want to be a framework? They might call it "VoidJS" instead, as in void = vacuum = so lightweight it's almost as if there's nothing there?

Or Null.js. Or undefined.js.

And now I want to create a library/framework/whatever called NaN.js...

Re: VanJS (Vanilla JavaScript): smallest reactive UI framework

#47
If I was making this kind of mini framework instead of this

    a({href: "https://vanjs.org/"}, "VanJS")
I would have gone with this shorter way

   a("VanJS").href("https://vanjs.org/")
And make it chainable and allow class names as second argument as in

    a("About us", ".big.red").href("/about.html").target("_blank")

Re: VanJS (Vanilla JavaScript): smallest reactive UI framework

#50

Until i run into a big bottleneck in react and cannot find a way to overcome it, i am not gonna switch from react to yet another new framework. Time is better allocated for more important things.

That's not the point. Imagine wanting to do a quick prototype, for example. A miniframework like this could be a great fit. Or when you code something (probably not too big) from scratch.
Post reply on HN