Ask HN: What's your absolute favorite tech stack, after having tried others?
I've tried quite a few programming languages/frameworks for both backend and frontend, and I found that I absolutely love working with React on the frontend and I'm on the fence between two options for the backend: Django (because it's so easy to come up with something) and Golang + GraphQL, due to the typed nature of Go and how you combine them with TypeScript on the frontend.
53 comments
[ 4.4 ms ] story [ 113 ms ] threadIt isn't my favorite aesthetically but as much as I like the various LISPs, Rust and Haskell/Purescript I use the above nine times out of ten.
Backend:
Frontend: Dev environment: (Pre)Production environment: Deployment:Also, in a Github Actions workflow, to run full E2E tests.
I'm just getting started with GraphQL. Tried Graphile first (also on top of PostgreSQL), from various other comments I've read. I have a harder time with having the current auth logic (in nodejs) work, since most Graphile tutorials are with row level security. Not sure if I should move to RLS too.
What do you think about Graphile vs Apollo Server+Hasura?
But in general, I either let the reverse proxy handles auth so my backend doesn't have to do anything, or I use the ORY stack[2].
But for personal projects (or an early-stage startup), I would drop React and just use plain old Laravel.
For my apps:
- React (tsx)
- Fastify
- Postgres w/ Knex
- OpenAPI 3.x w/ TS codegen
- Google Cloud (Run & Functions)
That's pretty much it, it handles purging on its own, as well as BYPASSing the cache for signed in users (required for me).
I have another site, much larger (600k page views per month) that I am also going to put behind Cloudflare this week. It does speed up by quite a factor so that's a no brainer.
Now I'm using Rust for the backend (its functional aspects make it a perfect choice for writing business logic) which is not REST (more commands oriented, like create_user, create_post, send_email...) and VueJS for the frontend.
Even if it took a little bit of time to learn Rust, I'm extremely satisfied with the productivity of this stack (Far greater than all the other stacks I've experimented)
Flutter/Dart (or perhaps a game engine Unity/Godot) for mobile unless there's specific support that I need more natively.
Actual backend varies depending on the project and can be anything from Go, F#, Kotlin/Javalin/JDBI, Elixir/Phoenix, and an SQL database either PostgreSQL or MySQL, sometimes CockroachDB, or a service like Firebase. TBH, the choice of backend tech doesn't actually matter that much once your application has a working foundation. Adding more usually just means replicating whatever, hopefully good patterns you've already created, and each successive addition gets easier as the foundation or examples to copy from get larger. Even a PHP/Yii project was as manageable as Ruby/Rails if it's rolling and cared-for, but I wouldn't personally choose these as I prefer static typing and don't feel slowed down by it.
Don't have an answer for Desktop, or need. If I did, I'd want something direct and cross-platform, maybe Java FX (or now Flutter).
- Vue.js
- Tailwind CSS
- GraphQL (I haven't had a chance to do anything with it yet)
- NodeJS (Rust - if I'm feeling adventurous)
- MongoDB (cause it's easy to set up)
I saved up some money and quit my tech job so I can 100% focus on learning these technologies. Right now, I'm focusing on learning the frontend part of this stack.
Still have yet to find something else that requires such little configuration and is so complete.
Just because after years of being in both ecosystems I am ridiculously productive and don't fall into as many traps. With heroku in 30 mins I could have app deployed production ready with auth, CI, API, database setup, and deployment pipeline.
Don't care about Vendor lock-in , or how it actually works. It just does
Dart is such a pleasure
For hosting, Linode is an independent cloud provider that has secure and reliable service. I’ve heard good things about Digital Ocean, too.
You can use Cloudflare or another specialty company for an extra layer of protection against DDoS attacks and such.
One important note about security and technology, in general:
It is at least as important, if not more so, to configure and use the technology properly as it is to choose any particular one.
There is no software or service whose security can’t be rendered completely ineffective by lack of care or expertise.
Backend: Go or Java (simple and minimalistic REST-ish API, not a lot of framework stuff), via Docker. AWS Lambda for some things.
DB: Postgres (usually managed with AWS RDS)
Backend: Lib/cgi.py
Database: Ext4
killer combo
- Oban for background jobs - Cachex for in-memory caching - Tailwind for styling - Hosted on Gigalixir
This stack is the most productive I've ever been
Transport: GraphQL
Frontend: Tailwind, urql, unpoly, Phoenix LiveView, all JS/TS frameworks are crap, so still waiting for something decent, but otherwise React.
Storage: PostgreSQL
Infra: docker/k8s, Digital Ocean