Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rich_harris
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
rich_harris
7y ago
> Are there any frameworks out there that provide a JSX/VueSFC/hyperscript development experience, without adding the complexity of a virtual dom implementation? Svelte is intended to be exactly that! Whether performance is an
92.
▲
by
rich_harris
7y ago
Agree, we can always improve onboarding. We have some simple instructions using `npx` on the homepage, but we'll try and signpost it better.
93.
▲
by
rich_harris
7y ago
Firstly, that's more code you're having to write (and object property names don't typically get mangled, so you'll end up shipping more code as well as writing more code). Write less code! https://svelte.dev
94.
▲
by
rich_harris
7y ago
Anything built inside https://svelte.dev/repl has a 'download' icon (top right) which gives you a zip file containing a ready-made project. We basically just need to have a way to take you from tutorial/examp
95.
▲
by
rich_harris
7y ago
I have seen it, yes. I'm impressed by the ambition, though I think that in the long term it's better to work with the grain of the platform by extending the web's existing languages rather than creating a new one. Memoization
96.
▲
by
rich_harris
7y ago
yep, it's planned :) https://github.com/sveltejs/svelte/issues/2464
97.
▲
by
rich_harris
7y ago
Rich text editing is possibly a special case, though the right person to ask about that would be Jacob Wright ( https://github.com/jacwright ). He's the creator of https://www.dabblewriter.com (which uses Sve
98.
▲
by
rich_harris
7y ago
Updates are asynchronous (they happen at the end of the event loop, so that `x = 1; y = 2;` results in one update instead of two), but I hear you on tooling. Svelte isn't yet as mature as other frameworks on that front (though debuggin
99.
▲
by
rich_harris
7y ago
Just components for now, but we have an issue for it: https://github.com/sveltejs/svelte/issues/2324
100.
▲
by
rich_harris
7y ago
Sort of, via preprocessing, but you won't get any real benefit from it at present. There are two barriers: the compiler itself needs to become TS-aware, and we need to teach editors like VSCode how to typecheck inside <script> bl
101.
▲
by
rich_harris
7y ago
Echoing your comment about Michel — he's a prince among men! Was great to meet him at YGLF
102.
▲
by
rich_harris
7y ago
Those are all libraries for state management . Svelte is a UI framework. It incorporates its own state management ( https://svelte.dev/tutorial/reactive-assignments for local state, and https://svelte.dev&#x
103.
▲
by
rich_harris
7y ago
You're totally right. This is good feedback — we'll have a think about how we can best address this.
104.
▲
by
rich_harris
7y ago
Yes! I talk a bit about prior art in this section of a recent talk: https://youtu.be/AdNJ3fydeao?t=504 . (Michel Weststrate, the MobX creator, was in the audience!) The difference in how you end up writing your code when you
105.
▲
by
rich_harris
7y ago
Thanks Jeremy! As I've expressed elsewhere, observablehq.com provided important inspiration. I've also been influenced by your own comments in the past about a language for building web apps. It's exactly that — there's
106.
▲
by
rich_harris
7y ago
Yep, and Svelte <3 Immer — they work nicely together.
107.
▲
by
rich_harris
7y ago
Creator here. We get this question a lot, and should probably dedicate a blog post to it. It's true that the incremental cost per-component is higher than with some frameworks. In theory, you hit an inflection point. In practice though
108.
▲
by
rich_harris
8y ago
you're much too kind, thank you! Yes, I intend to publish a series of interactive blog posts over the next few weeks covering the material in the talk
109.
▲
by
rich_harris
8y ago
Yes, absolutely. I'm a big TypeScript fan and this is high up my own priority list, not to mention one of the most common requests
110.
▲
by
rich_harris
8y ago
Fixed now thanks to njb in our Discord chatroom! God I love open source (and Travis CI) - was able to deploy this fix from my mobile phone while watching the brazil-belgium game
111.
▲
by
rich_harris
8y ago
Both sites are written in Sapper. The difference is that the Sapper site can take advantage of Sapper's `export` feature, which generates a static site from your codebase, Gatsby-style (except with much less JS). That's probably w
112.
▲
by
rich_harris
8y ago
One of the advantages of the Svelte approach is that you can theoretically make those determinations at compile time - if there's no interactivity on a page, don't serve any JavaScript. We're not quite there yet but it's
113.
▲
by
rich_harris
8y ago
It broke with the upgrade from Svelte v1 to v2. We're working on a fix!
114.
▲
by
rich_harris
8y ago
Hey all - Sapper creator here. Wasn't expecting to see this on HN, and not in a position to fully join the discussion (ie I'm in a pub) but happy to answer any questions when I can. This is an early project that is still in very a
115.
▲
by
rich_harris
8y ago
We haven't yet developed a full set of best practices around i18n, but the SSR/SEO stuff comes for free with the Sapper model. See https://github.com/sveltejs/realworld for an auth example - better and more s
116.
▲
by
rich_harris
8y ago
We might change it. There's an issue open if anyone is motivated to comment https://github.com/sveltejs/sapper/issues/263
117.
▲
by
rich_harris
8y ago
yep, looks like I broke something with a recent commit. D'oh. Not in a position to fix right now... moral of the story, no website is too trivial to have acceptance tests
118.
▲
by
rich_harris
8y ago
Bublé creator here. The obvious big difference is that this supports TypeScript and Flow, which Bublé doesn't. Bublé is designed to compile a subset of ES6+ into ES5 (the subset of ES6+ that transpiles well without causing bloat, which
119.
▲
by
rich_harris
9y ago
That's a good point! Updated the first line of the post, thanks
120.
▲
Rollup now has code-splitting and we need your help
(medium.com)
75 points
by
rich_harris
9y ago
|
10 comments
More ›