4 ms·
I agree. The "DSL" and "compiling" aspect of frameworks scares the crap out of me frankly. And on top, it's all happening on my poor users device - well not for
by intrasight 4y ago
I agree. The "DSL" and "compiling" aspect of frameworks scares the crap out of me frankly. And on top, it's all happening on my poor users device - well not for Svelte apparently.
Let's have a look at this "compiled" JS. Here's an snippet from the volume slider in his example:
function b() {
v = W4(this.value), h(0, v)
}
I understand that this is "compiled" - but really it's not - it's EcmaScript. If I wrote code like that, I'd get fired.
- bdougherty 4y agoYou are looking at minified output there; of course nobody writes that. You can see the compiler output in the "JS output" tab here, it's very easy to follow: https://svelte.dev/repl/12aefec27f0d4ec5ad85ab7e5a123642?version=3.50.0 https://svelte.dev/repl/12aefec27f0d4ec5ad85ab7e5a123642?ver...
- intrasight 4y agoGot it. It was both compiled and minified.