Live data from Hacker News

Ask HN: If you were to build a web app today what tech stack would you choose?

news.ycombinator.com

181–190 of 214 posts

Re: Ask HN: If you were to build a web app today what tech stack would you choose?

#181

I just started a project and chose this stack: - SSR SvelteKit with Hydration ( https://github.com/sveltejs/kit ) - PostgreSQL database server - Postgres.js - PostgreSQL client for Node.js ( https://github.com/porsager/postgres ) - Migration powered by graphile-migrate ( https://github.com/graphile/migrate ) - PostgreSQL Row-Level Security ( https://www.postgresql.org/docs/16/ddl-rowsecurity.html ) - svelte-headlessu…

Why did you choose sveltekit-i18n instead of another svelte i18n lib?

> Why did you choose sveltekit-i18n instead of another svelte i18n lib?

Mainly for the following argument:

- It is built for SvelteKit and has good SSR support.

And also, the following:

- The translations are loaded for visited pages only. (and only once!) - As of v2.4.2, the size of the sveltekit-i18n package is 14 kB in the minified form and 4.6 kB in minified + gzipped form

From https://blog.aakashgoplani.in/comparing-i18n-libraries-in-sv...

Re: Ask HN: If you were to build a web app today what tech stack would you choose?

#182

.NET 8 for the backend, and then blazor webassembly for the front end if it's complicated, or just boring old server side rendering with htmx if it's not. I've seen a lot of projects fail/struggle in golang (package ecosystem is still missing a lot of basics imo) or nextjs (very buggy). .NET has been my secret weapon. It's boring, works really well, has a good ecosystem and asp.net is really well thought through and…

How do you manage page load times? I've been fiddling with Razor/Blazor and sometimes the page load times are obscene (5+ seconds). Is that just because it has debug symbols built in? Or is there something else I'm missing?

Re: Ask HN: If you were to build a web app today what tech stack would you choose?

#183

Earlier quoted context omitted.

Linux exclusively - I detest Windows server, via docker. I feel that it's actually quite rare to run modern .NET apps on Windows Server now.

I understand and agree with your sentiment but .net core on windows is definitely not rare. What's rare is asp.net windows developers knowing what a reverse proxy is (they typically install the asp.net core hosting packages).

Wait, wait, so reverse proxy functionality is available in ASP.NET?

If I'm deploying an app to a K8s cluster, I assume I would still opt for an ingress rather than making my app handle that bit of functionality? Where's the cutoff here?

Also, how do I handle discovering what ASP.NET offers in terms of functionality? Is there an overview somewhere that I missed?

Re: Ask HN: If you were to build a web app today what tech stack would you choose?

#184

I just started a project and chose this stack: - SSR SvelteKit with Hydration ( https://github.com/sveltejs/kit ) - PostgreSQL database server - Postgres.js - PostgreSQL client for Node.js ( https://github.com/porsager/postgres ) - Migration powered by graphile-migrate ( https://github.com/graphile/migrate ) - PostgreSQL Row-Level Security ( https://www.postgresql.org/docs/16/ddl-rowsecurity.html ) - svelte-headlessu…

What do you use for background jobs and admin iinterface?

Re: Ask HN: If you were to build a web app today what tech stack would you choose?

#185
post #78

I would choose Remix based solely on my assessment of the integrity and personal character of the people I’ve met who use it, which I suspect is similar to those who created it.

I would also choose Remix. Logical routing with a really simple retrieve/update pattern (loaders and actions).

Re: Ask HN: If you were to build a web app today what tech stack would you choose?

#186

Supabase + Flutter is a stack I can highly recommend if you want to get off the ground fast. Both are extremely intuitive to get started with.

Flutter for web? I've used it, and liked it, for mobile. Is web the same?

Re: Ask HN: If you were to build a web app today what tech stack would you choose?

#187

I might be the only one in here with an answer like this, but PowerShell and the Pode framework. I am super productive with it, as much so as in any other language, and it plays nice with the rest of my stack (Tailwind, HTMX, SQLite.) I can leverage the .NET framework and C# libraries when I need to and can iterate quickly. All of this runs on the latest version of Ubuntu LTS. Obviously, this won’t work for everyone…

Very nice. I used pode for for some of my infrastructure services. Anything to show?

I wish, but right now it is all internal company stuff. I'd like to build something publicly accessible with it someday though so maybe I'll do a Show HN if I have something worth releasing.

Re: Ask HN: If you were to build a web app today what tech stack would you choose?

#188
post #183

Earlier quoted context omitted.

I understand and agree with your sentiment but .net core on windows is definitely not rare. What's rare is asp.net windows developers knowing what a reverse proxy is (they typically install the asp.net core hosting packages).

Wait, wait, so reverse proxy functionality is available in ASP.NET? If I'm deploying an app to a K8s cluster, I assume I would still opt for an ingress rather than making my app handle that bit of functionality? Where's the cutoff here? Also, how do I handle discovering what ASP.NET offers in terms of functionality? Is there an overview somewhere that I missed?

RP has nothing to do with any programming language or framework, if a web server exists, you can put a reverse proxy in front of it.

In this case, asp.net core has a built-in web server named Kestrel. IIS can be used as a reverse proxy so you can have IIS forward requests to web servers bound to local host.

Personally, I think its quite hilarious that you went straight to k8's. The vast majority of asp.net code is running on servers (bare metal or otherwise).

Re: Ask HN: If you were to build a web app today what tech stack would you choose?

#189
For the frontend, there is React framework called refine for building CRUD apps like admin panel and internal tools

https://github.com/refinedev/refine

It has built-in integrations for UI libraries and data providers. You can select your stack

Re: Ask HN: If you were to build a web app today what tech stack would you choose?

#190

Earlier quoted context omitted.

Yeah, this is exactly what I do as well. I'd be curious to hear more about your deployment process, specifically how you get your Docker image onto the VPS. Do you just push to a registry like DockerHub and then pull it down on the VPS?

Yes, I use GH actions to push it to a registry and then manually pull it on the VPS. I’m sure there are better ways to automate this but I’m too lazy at this point to implement them.

You can use Watchtower (https://containrrr.dev/watchtower/) that solves problem of manual pulling on VPS.
Post reply on HN