News for hackers. Stuff that matters.
Re:Ask HN: What's is your go to toolset for simple front end... by dbrueck on Thursday July 07, 2022 @09:25AM (#32013778)
https://svelte.dev/tutorial/basics - easy to get started with but really powerful for complex stuff too

For layout, don't use any CSS framework, but instead refer to https://css-tricks.com/snippets/css/a-guide-to-flexbox/ often - every time I use some big CSS framework I end up fighting it at some point.

https://vitejs.dev/ for packaging - I got really grumpy when frontend stuff started needing build and packaging tools, but it's the nature of things so you just have to deal with it, and vite is fast, not overly complicated, and supports fast hot reloading.

Re:Ask HN: What's is your go to toolset for simple front end... by wackget on Thursday July 07, 2022 @02:40PM (#32017709)
Since when did frontend require building or packaging?

In fact, since when did ANY web development require those things?

Re:Ask HN: What's is your go to toolset for simple front end... by collyw on Friday July 08, 2022 @04:55AM (#32024578)
Our front end devs were drawing diagrams of react components with arrows everywhere. All the app is doing are some fairly basic forms with a bit of validation. NPM install to get the thing running on a development machine, and it seems to download half of the internet. What an absolute shitshow "full stack" development is these days.
Re:Ask HN: What's is your go to toolset for simple front end... by plaguepilled on Friday July 08, 2022 @01:11AM (#32023506)
Why is that bad?
Re:Ask HN: What's is your go to toolset for simple front end... by collyw on Friday July 08, 2022 @04:53AM (#32024563)
over complex mes
Re:Ask HN: What's is your go to toolset for simple front end... by jeanlucas on Thursday July 07, 2022 @09:33AM (#32013863)
I don't consider Svelte a simple toolset because it can't be published statically
Re:Ask HN: What's is your go to toolset for simple front end... by soggybutter on Thursday July 07, 2022 @09:50AM (#32014065)
Unless I'm misunderstanding you, Svelte can absolutely be published statically. If you leverage SvelteKit and the SSR it offers, then yes you need to deploy a server, but regular Svelte builds a statically deployable bundle just like React, Vue, or any other big UI lib/framework
Re:Ask HN: What's is your go to toolset for simple front end... by orangepanda on Thursday July 07, 2022 @12:35PM (#32016153)
I think they meant that svelte cannot be used without a build step.

The fact that builds dont need a second build is nice to know, even if useless.

Re:Ask HN: What's is your go to toolset for simple front end... by carbadtraingood on Thursday July 07, 2022 @09:48AM (#32014046)
I think you are incorrect here. Sveltekit comes with a number of adapters designed to ship either a SSR site or a static SPA.

Serving a static Svelte site is literally a one line change in a config file. I've got a good half dozen Svelte sites that live in s3.

Re:Ask HN: What's is your go to toolset for simple front end... by mateomorris on Thursday July 07, 2022 @10:03AM (#32014247)
It can quite easily with https://primo.so
Re:Ask HN: What's is your go to toolset for simple front end... by ramshorst on Thursday July 07, 2022 @09:46AM (#32014017)
If you are in a larger scale SEO project this does blazing fast static generation with Svelte: https://github.com/Elderjs/elderjs
Re:Ask HN: What's is your go to toolset for simple front end... by vonadz on Friday July 08, 2022 @04:59AM (#32024603)
Can attest to this. We used it to build https://findenergy.com which has over 15k pages and a TON of data.
Re:Ask HN: What's is your go to toolset for simple front end... by Komodai on Thursday July 07, 2022 @10:05AM (#32014273)
Have you even used Svelte yourself?