Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mvolkmann
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
mvolkmann
3y ago
Sorry, I didn't know that.
2.
▲
We are pretty efficient with code editors. How about the CLI?
(mvolkmann.github.io)
3 points
by
mvolkmann
3y ago
|
3 comments
3.
▲
by
mvolkmann
3y ago
This article is a collection of tips on terminal usage.
4.
▲
by
mvolkmann
7y ago
Sapper provides a great option for routing. I view that as the official routing solution, but there are other options too.
5.
▲
by
mvolkmann
7y ago
It seems like both Mithril and Imba do some form of DOM diffing. It’s easy because you just tell it to update the DOM using the latest state. Imba in particular says it has a really fast way to do that. But isn’t it that case that no matter
6.
▲
by
mvolkmann
7y ago
@pier25 You got me curious about this. I've never seen this done with Svelte, so I decided to try it. Check this out: https://github.com/mvolkmann/svelte-with-classes/blob/master... . The key is that when
7.
▲
by
mvolkmann
7y ago
You can do complicated things with Svelte stores, but in my experience most of the time you only need something like this using a writable store: <script> import {writable} from 'svelte/store'; const person = writab
8.
▲
by
mvolkmann
7y ago
I haven't tried that.
9.
▲
by
mvolkmann
7y ago
I absolutely love Svelte ... and Sapper too! Here's a talk I gave recently on Svelte. https://www.youtube.com/watch?v=PXOE7oZyaBA
10.
▲
by
mvolkmann
7y ago
Testing for Svelte does exist! See my writeup on it here: https://objectcomputing.com/resources/publications/sett/july...
11.
▲
by
mvolkmann
7y ago
I understand if you really want TypeScript support, but why do you feel the component model is hacky? I find it beautifully simple.
12.
▲
by
mvolkmann
7y ago
The testing story just hasn't been well documented yet in the official docs. I have documented both unit and end-to-end testing with Svelte here: https://objectcomputing.com/resources/publications/sett/j
13.
▲
by
mvolkmann
7y ago
Yes, but it is so much easier to implement Svelte components than components in Angular, React, or Vue. So much less code to write. No need to write classes, just plain functions, so no need for "this". Automatically scoped CSS. V
14.
▲
by
mvolkmann
7y ago
A Svelte store can hold a deeply nested object. It's up to you how fine-grained you want the stores to be, anywhere from one store per value to one store for the entire application. I think a middle ground is best.
15.
▲
by
mvolkmann
7y ago
HTML/CSS/JavaScript has no builtin state management and no two-way binding between state and form controls. Svelte makes those things very easy.
16.
▲
by
mvolkmann
7y ago
If you are referring to my article, "small footprint" is not the main point for me. The main point is ease development due to features like easier component state management, app state management with stores and sharing data betwe
17.
▲
by
mvolkmann
7y ago
You said "My personal view is that the 'what' in frontend development generally isn't super interesting and most web frontends are very similar." I think if you take a serious look at Svelte you will see that it is
18.
▲
by
mvolkmann
7y ago
If your most pressing issue is making managing state easier, you should run to Svelte! Take a look at how Svelte supports "stores", "context", and state within a component. Those are so good that I predict nobody will ev
19.
▲
by
mvolkmann
7y ago
Here is the issue that describes what the Svelte team is doing to add support for TypeScript: https://github.com/sveltejs/svelte/issues/1639
20.
▲
by
mvolkmann
7y ago
Not true. That section mentions several other "Whys" including this: "Svelte dramatically simplifies component and application state management. Contributing features include context, stores, and module context, each of whic
21.
▲
by
mvolkmann
7y ago
If you want to get up to speed on Svelte quickly, read this! https://objectcomputing.com/resources/publications/sett/july...
22.
▲
by
mvolkmann
8y ago
If you like templates and framework-specific syntax for conditional logic and iteration sprinkled into your HTML then you will love Vue. If you prefer the JSX approach and relying on JavaScript for conditional logic and iteration then you