Re:Ask HN: Simplest stack to build web apps in 2021?
by mft_ on Monday November 22, 2021 @06:03PM
(#29312659)
As an aside (and as a Python/Flask user on several past projects) I'd also recommend taking a look at FastApi. (https://fastapi.tiangolo.com/)
I've not used it in depth yet, but from a poke around the overall design and syntax seem very nicely thought out (much more logical/intuitive than Flask, honestly) and it's very fast.
Re:Ask HN: Simplest stack to build web apps in 2021?
by staticautomatic on Monday November 22, 2021 @10:10PM
(#29314194)
I like that following the idiomatic pydantic/data class style in the fastapi docs really forces you down the OOP rabbit hole and puts some guardrails around your architecture (unlike flask, where you’re free to shoot yourself in the foot however you want). What I don’t like is that fastapi gives the appearance of being batteries included, but the docs on the batteries tend to just point to example projects/templates that a beginner will look at and think omgwtf is all this shit (e.g. https://github.com/tiangolo/full-stack-fastapi-postgresql)
Re:Ask HN: Simplest stack to build web apps in 2021?
by numbnuts on Monday November 22, 2021 @07:46PM
(#29313384)
Something like Next.js for JavaScript would be better. Express is too bare-bones for OP's criteria. It's bring your own batteries. Just trying to choose from all the batteries available is a full-time job.
Re:Ask HN: Simplest stack to build web apps in 2021?
by keyle on Monday November 22, 2021 @05:36PM
(#29312395)
I'd go one more, and say specifically Laravel Livewire. It's a pleasure to use and gives you the flexibility of having a reactive frontend.
I do recommend dipping in Laravel first, before Livewire.
Re:Ask HN: Simplest stack to build web apps in 2021?
by peanut_worm on Tuesday November 23, 2021 @12:06PM
(#29320248)
Probably use Nest over Express if you want something complete like Rails. Express is pretty barebones, its not much more than a wrapper for Node’s http module.
Re:Ask HN: Simplest stack to build web apps in 2021?
by moystard on Thursday November 25, 2021 @04:35AM
(#29339752)
Nest gives you a structured project with strong conventions. On top of that, their document provides plenty of recipes to get common tasks done quickly (authentication/authorisation, persistence, queues, etc). Very solid framework.
Re:Ask HN: Simplest stack to build web apps in 2021?
by gfxgirl on Monday November 22, 2021 @05:58PM
(#29312625)
Node/Express != Rails, one is a low-level gives you almost nothing at all. The other is a high-level CRUD based framework.
Re:Ask HN: Simplest stack to build web apps in 2021?
by hoofhearted on Monday November 22, 2021 @10:46PM
(#29314372)
This is the correct answer.
With the addition of:
C# => .Net Core
Re:Ask HN: Simplest stack to build web apps in 2021?
by veryangryrabbit on Tuesday November 23, 2021 @07:05AM
(#29316862)
More specifically,
C# => Blazor using .NET 6.
Their latest web framework running on the latest long-term support version of .NET
Re:Ask HN: Simplest stack to build web apps in 2021?
by culopatin on Tuesday November 23, 2021 @09:35AM
(#29318248)
Anything wrong with Spring? It seems somewhat intuitive for me for some reason. But I have no experience with the others
Re:Ask HN: Simplest stack to build web apps in 2021?
by chakkepolja on Tuesday November 23, 2021 @10:41AM
(#29319095)
In my experience, spring has been intuitive until you need anything slightly custom, or until layers deep configuration / reflection magic bites you. Other thing I didn't like about spring was that documentation was pretty sparse and didn't explain concepts well, it's either some hyper-specific tutorials or reference docs. (There are some good blog posts though, but I couldn't build a comprehensive mental model just following the tutorials). It's still what I reach for when I need to spin up a CRUD API quickly.
Rooting for quarkus to become more mature though. (Recently tried based on someone's recommendation on HN).
Re:Ask HN: Simplest stack to build web apps in 2021?
by engineerDave on Monday November 22, 2021 @07:34PM
(#29313311)
This is the correct answer.
PHP => Symfony or Laravel
Python => Django or Flask
Javascript => Node/Express
Ruby => Rails
Then there are others like elixir/Phoenix etc and then you can do your own in Go etc.