Lurker News
Specifically the backend. I'd love to hear your reasons. Do you keep one eye on what the stack would be post MVP?

1. Old schoolish (VPS - Maybe DO, Django/Flask/Rails/Remix/Next with postgres)
2. Supabase etc with JS/TS on either side of the network
3. Lambda/Cloud functions with Firebase/Dyanamo DB/Cosmos DB etc
4..n. What else and why?

Comments (723) 347 threads

Earlier comments
marcus_holmes2 replies#
Go & Postgres on the backend, running on a baremetal server.

Because this is actually capable of handling a decent workload for really cheap compared to cloud.
There's a few tricky bits to do with logs and reporting, but the benefits outweigh the pain.
Vue on the frontend.
Last time I used BootstrapVue and it worked well. I'd want to re-evaluate that decision next time, have a look at some of the newcomers. I'm aware Bootstrap is now considered to be passe.
I really like the Vue philosophy and it pairs with Go nicely. Last time I ended up using ESBuild to actually build the Vue bundles from inside the Go server, which was interesting but I'm not sure I'd do that again.

jamal-kumar1 reply#
I'm of a similar philosophy, but also because I'm not beholden to rushing a minimally viable product to the feet of some angel investors (Super allergic to that after a few experiences). I mean it's kind a a premature optimization if you just need to get a working example out there for people who like to see fast results, but if you've got the funding to start your own company just writing it properly for performance from the get go is the obvious thing to do.

I also choose a stack like that because it's what I've been mostly working in for a long while now and it's really productive (For me).

marcus_holmes#
yeah, I get the same - I'm probably not going to get something up as fast as I would if I used Rails (though it's probably close - I've built so many sites on this stack that I know all the pitfalls and have a lot of the boilerplate down to copypasta now).

But this backbone can take a lot of experimenting with features easily, and is fast enough to forgive a lot of sins - I generally just don't have to worry/think about performance at all.

caeril3 replies#
This is the correct answer. It's quite shocking how many Django and Laravel answers there are in this thread. Performance and type safety appear to be completely irrelevant to HN.

You should take a look at Vite (https://vitejs.dev/) for a Vue development environment, if you haven't already.

marcus_holmes#
thanks for the tip, I'll check it out :)
lelanthran1 reply#
> This is the correct answer. It's quite shocking how many Django and Laravel answers there are in this thread. Performance and type safety appear to be completely irrelevant to HN.

I was wondering about that actually.
Writing code in Python, Rails, etc is painful. A stupidly high percentage of the "unit tests" aren't testing logic at all, they're simply ensuring that incorrect types are handled properly.
And then I see comments like "well, my MVP can run very cheaply, a $100/m DO droplet" and wonder what on earth they are talking about - I had a $5/m DO droplet handling around 50k-60k concurrent TCP (not HTTP) connections, all serving data without any of the connecting devices timing out.
The devspeed differential between things like C#/Java/Go and Python/PHP/Ruby is large only at the very beginning of your project. When you're adding new features in every day, six months into the project, you're almost definitely going to be faster in some statically typed compiled language.
Seriously, using Django is likely to shave a week or so off the time; if that week matters so much then your expected lifetime for the product is what? Two weeks? Three?
I get it, in that if your MVP is timeboxed to (say) two weeks to alpha, then, yeah, those things that shave a week off make sense. But if your MVP is timeboxed to two weeks:
a) Tt's unlikely to be of much value to the consumer, b) Your competitors will appear two weeks after you first launch anyway.
I want to do a new product, and when judging each product idea I have, the largest issue is always finding the largest amount of value I can create/deliver in a particular timeframe (say, 3 months f/time).
If the value the product is providing can be done in a week with Rails, then there's not much motivation for me to develop that product - everyone with a week of leave or a month of weekends is going to have a clone out before I can even learn marketing.
If it's going to take 3 months regardless of the language, I have at least 3 months to build up a userbase, and do product refinement and fit.

RangerScience2 replies#
> The devspeed differential between things like C#/Java/Go and Python/PHP/Ruby is large only at the very beginning of your project.

That's a massive hard-no for me. I generally only get faster the longer I get to work with a Ruby codebase, as I get to make it more and more into a DSL for the business situation. I never saw that happen with compiled languages; my speed tended to remain constant after the initial boot.
I know what you're talking about tho - it's the sharp knives + large team problem. The language doesn't maintain a standard of code for you, you (and your team) have to do that yourselves, and if you don't, things can very much get bad. If you're programming in a loosely typed language such that you're effectively having an explosion of types, you're suffering one of the more common downsides to typed languages and you're not using the common upsides to loose typing.
That said - when I'm working, the main difference I've seen with Ruby (and, to a lesser extent Python and JS) vs compiled is the iteration loop, particularly due to having a REPL console. Static languages have definitely made some gains there (looking at you, Scala REPL). Being able to drop into both any debug point in the program, as well as a console loaded with your code, makes certain explorative processes substantially faster.

Continue this thread — 2 replies

0xblinq#
No, it’s not, because we’re talking about an mvp and not about building an ultra high performance micro service.

And btw, there is no “correct answer” despite how much you like it.
There are many “correct answers” and a lot more wrong ones. Like using assembly code for building a CLI app or Go for an MVP.

rozenmd1 reply#
Build with what you know, that way you'll be focusing on just building what your customers are asking for, and not also having to learn the technology as you build.
mindcrime#
Exactly. If one were to look at my top-level reply here and ask "why?" for any item I listed, in basically every case the answer would be "It works, and I know it." I could get more done faster using that stack than a stack I'd have to learn from scratch.

That said, there's a time and place for experimenting and learning new stuff. And I am interested in trying Elixir at some point. But to "get stuff done" in the near term? Yeah, it's going to be mostly Java/Groovy, Grails, and some Javascript. Hell, I might even break out jQuery just out of sheer familiarity, if I got stuck doing something using vanilla JS.

EMM_3862 replies#
I'm going to buck the (numerous) trends here and keep it simple at the same time.

C# REST APIs on Linux with PostgreSQL and the front-end framework of your choice. I generally stick with Angular.

isanjay112#
I use the exact stack. I even develop on Linux using Rider. :)
SIRHAMY#
Same (but I use F#)!

I find .NET to be great for backends though maybe not as great for frontends (there's just better stuff out there). So I use the best tool for the job and that typically means using something else for frontend.
Right now I use SvelteKit for frontend.

Thaxll5 replies#
There is only one good answer to that, you should use what you already know, if you build an MVP it's to deliver a product, it's not meant to spend 2-3x more time to learn new tech.
cirrus3#
Agree
sbarre#
Sure, but I suspect the motivation behind this post is specifically to learn about what people love to work with, not to be convinced about what to use for their own MVP?

At least that's the value I'm getting out of everyone's answers that actually talk about their favourite stack (vs just saying "use what you want" etc)

readonthegoapp#
This is always the wrong answer to this question.

Yet it never goes out of style, apparently.

chronofar#
This is the most common advice around these parts, but it seems woefully misguided to me.

The “only good answer” if there is just the one is that you should use whatever fits the requirements. If those requirements involve you getting to market as fast as possible in a highly generic domain (ie building a standard website) where the tools you know work just as well as others and you’re not worried about various other factors then sure, go with what you know and can churn out the fastest.
But though many projects may fit this mold they are by no means universal requirements, and your requirements may very well dictate the best path is for you learn new tech (for instance if you usually do .NET stuff but are building a a ML service on a device or something). Sometimes there are better ways to accomplish things than what you already know and you’ll indeed be better served by learning them. If you’re just a hammer looking at everything as a nail because you can bang on it the fastest you’ll stub your (and probably others’) thumbs one way or the other.
Not to mention learning new tech is often its own reward regardless of the much less certain fate of a given MVP. At the very least you'll have another tool in the toolkit to assess future project requirements, rather than blindly attacking everything w/ a hammer.

rubylark#
I'll add an anecdote to contradict that argument:

I work in embedded, and the place I work restructured to have a dedicated software group. They hired young software engineers and focused on getting people who are good programmers without really caring what they were good at. Most people ended up being web developers and liked webstack.
We were tasked with making a handheld air quality measurement device with a touch screen that could pair with a computer app that we would also write. Most people on the team knew webstack so we decided on a HTML/CSS/JavaScript +SQLite that would run in Electron Chromium on Linux on the physical device.
So what went wrong? Well, electron is bloated for embedded devices and the mid-tier processor we were using chugged so much that it would get hot. Hot enough to affect the temperature sensors at the top of the board and throw off the gas density measurements. Our MVP was nearly done when we discovered this problem.
We had two choices: throw out the hardware or throw out the software. We ended up throwing out the software and starting over (in Winforms + C# if anyone's curious). I and two others quit as a result. It is _really_ depressing redoing something you've already done in a different language.
If we picked the lighter weight framework from the start instead of picking the language most people knew, we wouldn't have lost a year of work.

Load more comments