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

151–160 of 214 posts

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

#151

Django with HTMX + Alpine on the frontend. Deployed as Docker container on a cheap VPS. It's boring, time tested but by Jove, does it get the job done fast. I'm building a B2B2C marketplace in my free time and I'm blown away by the practicality of this stack. Due to longevity of Django, every problem I encounter is just a search away. DRF makes it dead simple to add REST APIs. The Admin panel is a golden cherry on to…

Sounds good. Do you do type checking? DB?

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

#152
For a more nuanced viewpoint than "This is the tool I am most familiar with" (which for the most part is both the right answer for that person, but probably not for you), see the MDN articles starting at https://developer.mozilla.org/en-US/docs/Learn/Tools_and_tes... and reading down through the next few chapters.

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

#153

Earlier quoted context omitted.

The discussion is making me scared from another perspective. I have experience with a pretty wide variety of development. I've worked with embedded microcontrollers (minimalistic RTOS), embedded applications (on top of a proper Linux), desktop applications in Java and in C#, some C++ work, gamedev and more. But to this day I haven't touched Web apps. I have not written a line of JS and the closest I've done to modern…

Web dev frameworks are like pizzas: everyone has their favorite toppings and styles, some are more popular than others, and others are sometimes loathed (pineapple), but it generally all comes down to cheese, dough, sauce at the end of the day.

Is the dough HTML, cheese CSS and sauce JS?

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

#154
I’d use whatever scales best for the least cost.

Go backend. Single binary. Big performance. I’d use Go for as many things as possible until I actually had a need for distinct technologies (queues, redis, etc.). Throw embedded db into the mix and you shouldn’t have any problems for a long time.

React UI on cloudflare pages. Free. Easy.

Postgres. Single node goes far. Great plug n play extensions. Same as with Go I can push this pretty far until there is some serious requirement to do something else.

Deploy on either cheap bare metal or an affordable provider like DO.

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

#155
I'd write it in Lazarus/Free Pascal, compile it to WASM[1], and do whatever hacks I had to do in order to push it through the internet into a web browser.

There's nothing even close to the productivity we had back in the days of VB6/Delphi to be had on the web, ever. The closest we're going to get is a pale imitation.

[1] https://wiki.freepascal.org/WebAssembly

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

#156

Django with HTMX + Alpine on the frontend. Deployed as Docker container on a cheap VPS. It's boring, time tested but by Jove, does it get the job done fast. I'm building a B2B2C marketplace in my free time and I'm blown away by the practicality of this stack. Due to longevity of Django, every problem I encounter is just a search away. DRF makes it dead simple to add REST APIs. The Admin panel is a golden cherry on to…

Sounds good. Do you do type checking? DB?

Yes, using mypy and planning to check out Ruff instead. PostgreSQL for prod DB, SQLite for local dev.

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

#157

Django with HTMX + Alpine on the frontend. Deployed as Docker container on a cheap VPS. It's boring, time tested but by Jove, does it get the job done fast. I'm building a B2B2C marketplace in my free time and I'm blown away by the practicality of this stack. Due to longevity of Django, every problem I encounter is just a search away. DRF makes it dead simple to add REST APIs. The Admin panel is a golden cherry on to…

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.

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

#158
post #154

I’d use whatever scales best for the least cost. Go backend. Single binary. Big performance. I’d use Go for as many things as possible until I actually had a need for distinct technologies (queues, redis, etc.). Throw embedded db into the mix and you shouldn’t have any problems for a long time. React UI on cloudflare pages. Free. Easy. Postgres. Single node goes far. Great plug n play extensions. Same as with Go I ca…

Do you by any chance know whether there's something like a go library or converter/transpiler that allows you to reuse the structs from a backend on the client side?

Currently I always have a little redundancy in my projects when it comes to the JS HTTP client that calls the golang backend's API and I want to avoid that.

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

#159
React on the front-end because of eco; Fastify on the backend w/ Postgres. I host React w/ Remix for light-duty SSR, but real work gets done on the backend. I'm moving away from metaframeworks as single solution -- they're easy, but keeping biz logic on the be makes it much easier to swap out fe and better for testability IMO. I'll prob shift over to Solid once / if Start ever ships, else Qwik.

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

#160

Just had been thinking about this today, the current state of web development is making me seriously depressed. I would pick what I'm most comfortable with, a simple monolithic Nest.js application running Fastify, with Postgres or SQLite, Dockerized, hosted on a predictably-priced host like Hetzner, and Ansible to automate everything. I know that stack will give me plenty of headroom until I eventually need to scale…

The discussion is making me scared from another perspective. I have experience with a pretty wide variety of development. I've worked with embedded microcontrollers (minimalistic RTOS), embedded applications (on top of a proper Linux), desktop applications in Java and in C#, some C++ work, gamedev and more. But to this day I haven't touched Web apps. I have not written a line of JS and the closest I've done to modern…

There is a high rate of change because the big frameworks solve the wrong problems, massage over a catastrophic knowledge/skills gap, and do less than what is needed while imposing an unavoidable, yet unnecessary, tremendous cost/size.

If developers could execute with confidence in the browser understanding the compile target, the DOM, we wouldn’t be in this mess. But, most developers are scared shitless of tree models and/or writing any form of original code. That is not a technology problem. It’s a people problem.

Post reply on HN