Live data from Hacker News

VanJS (Vanilla JavaScript): smallest reactive UI framework

github.com

71–80 of 214 posts

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

#71

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…

How about an alternative name like Pure JS (already taken), JS Only, No-Framwork framework

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

#72
post #69
post #64

Earlier quoted context omitted.

Suggestion: call it Bourbon JS. Wikipedia: > The majority of the world's vanilla is the V. planifolia species, more commonly known as Bourbon vanilla.

Wait people write JavaScript without drinking bourbon?

I've been managing that since more than a decade. Having neither jQuery nor bourbon was a challenge at first but browser APIs evolved and I fell in love with green tea.

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

#73
post #60
post #33

Web development is going to come full circle once everyone comes to terms with the fact that web development has been overcomplicated and you don't need 1000 packages and abstractions on top of abstractions just to interact with some DOM elements.

you don't need 1000 packages and abstractions on top of abstractions just to interact with some DOM elements I don't think many developers believe that you do. Most of the complexity around 'modern web dev' isn't about achieving the basics of moving DOM nodes around. If that's what you're doing then it's hard to argue that a framework adds much benefit. Frameworks bring two benefits: Firstly, they push you down a spe…

> Building an app that renders a complex page in under 16ms isn't that easy if there's a lot going on

We struggle to render a few boxes and some text under 16ms while games with vastly more complex sound, network, physics, UI and whatever else systems render frames in < 8ms at 4k.

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

#74
post #4

> VanJS has the vision to be the scripting language for UI, just like bash is the scripting language for terminal. I find this quite strange. Wouldn’t javascript be to the browser what Bash is for the terminal? This is after all just another library.

Bash?

So VanJS will make the simple things easy and anything else nigh-on impossible?

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

#75
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.

> Seems pretty vanilla No it doesn't, same as "automobile" doesn't seem pretty Saturn-5, despite the fact that both are moving under their own power. Terms have meaning, including meaning derived from communities by and large accepting that a certain term has a certain semantic meaning. And the accepted semantic meaning of "Vanilla Javascript" is "runs without a framework besides the browsers own API". If my code wor…

^^^100%

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

#78
post #14

The "Hello World" example is a really good example of why React, Vue, etc are better than something more minimal like this library if you're optimizing for speed. The page will show nothing until the script runs, which requires downloading the VanJS lib and the script itself. You could inline them into the page, but that gets seriously messy at scale. A modern React app that's using some serverside rendering for the…

They list SSR as a feature.

Also, using rollup would be trivial.

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

#79

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…

I came to be that guy. Vanilla JavaScript is the term for plain JS without any framework, library or plugins.

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

#80
post #64
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?

Suggestion: call it Bourbon JS. Wikipedia: > The majority of the world's vanilla is the V. planifolia species, more commonly known as Bourbon vanilla.

Already taken. I know it's not JS but it's front end tooling.

https://www.bourbon.io/

Post reply on HN