Live data from Hacker News

VanJS (Vanilla JavaScript): smallest reactive UI framework

github.com

31–40 of 214 posts

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

#32
post #23
post #8

Earlier quoted context omitted.

Yes, please be that guy. Or I'll do it. Vanilla Javascript refers indeed to "javascript without a framework". So creating a framework and calling it "vanilla javascript" is... wrong?

It’s 93 lines, less than most CSS resets. Small enough to copy paste to the top of your index.html in a script tag. You can use it without NPM, webpack, a special compiler pass, or a template language. Seems pretty vanilla compared to the full fat, popular alternatives.

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.

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

#34
post #13

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…

That is why the name is only half vanilla: van ;-)

Could have named it StraciatellaJS then. ;)

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

#35
Since the other comments are complaining about something or other, I just want to say that this looks great! I can imagine using this for something that needs more than jQuery and less than react.

I use the same Html-in-JS syntax for my own project and it works really well. The good folks at solenya have written a converter: https://www.solenya.org/convert

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

#36

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…

Yeah, just call it VanJS everywhere and never call it "Vanilla JavaScript" and that would be good enough.

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

#38
Hard to see a real-world use for this but reading the code and docs is pretty interesting. The code taught me some cool tricks. Good job!

Some of the binding API is a bit weird, like that object with `deps` (State-derived properties). Maybe providing a function for this would be more ergonomic.

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

#39
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?

Hey, that’s actually a pretty cool name.

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

#40
post #32
post #23

Earlier quoted context omitted.

It’s 93 lines, less than most CSS resets. Small enough to copy paste to the top of your index.html in a script tag. You can use it without NPM, webpack, a special compiler pass, or a template language. Seems pretty vanilla compared to the full fat, popular alternatives.

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!

Post reply on HN