Live data from Hacker News

Ask HN: Go-to web stack today?

news.ycombinator.com

271–280 of 453 posts

Re: Ask HN: Go-to web stack today?

#271
- nuxt (or next if you prefer react) - tailwind (atomic css)

- node - express - passport (Use cookie based auth keeping the session in your storage. I wouldn’t waste time on JWT. There’s a decent amount of complexity if you want both the security of being able to revoke access to a bad actor and the convenience of long lived sessions, and at the end the auth server will most likely need to access storage and use cookies for that anyway (eliminating the benefits of JWT). So I’d start with cookie based auth and build up complexity as needed.)

- postgres - On the Node side, I don’t recommend adding the complexity of an ORM at first (or ever). The node pg driver will give you arrays of objects back for rows. It’s convenient enough not to need the extra overhead of an ORM. - As a side note, Postgres has modules for you to implement a decent first version of a lot of things, such as search for example, before you need to reach for a dedicated solution. This makes it amazing for startups in my opinion, as you can explore ideas very quickly.

- statsd / grafana (to monitor your app and learn from the behavior of your users)

- docker-colpose.yml to make spinning up your dev environment with node / db / stats as simple as “docker-compose up”

- DigitalOcean for hosting - Use their dokku image - Set up daily backups to Spaces since your DB will be hosted here at first too

- dokku for deployment with the Postgres, letsencrypt and grafana modules - deployments are as easy as “git push master dokku”

Re: Ask HN: Go-to web stack today?

#273
For my most recent toy project[1], I've gone with:

Storage: SQLite, assuming that in case of seeing actual load I migrate to Postgres.

Backend: Flask, I find it a nice tradeoff between features and simplicity.

Frontend: Angular, it seemed to bring some sanity to the frontend... But it seems rather bad at keeping backwards compatibility and I'm not sure if the bloat is worth it.

[1]: https://github.com/lrem/ladders

Re: Ask HN: Go-to web stack today?

#274
post #212

Earlier quoted context omitted.

At least briefly consider whether or not you actually need a relational database when starting a project. I work with some rather complex data access using Postgres, JPA, Hibernate, HikariCP, and a second level cache, all within a separate microservice exposed via a REST API. To make matters worse, the responsible developer has since left the project to me. We don't even use relations, so this essentially means that…

I would personally never use MongoDB again. Broke one too many times. Postgres on the other hand has never failed me.

Same. I went on hype train, got burned badly and I am never going to use MongoDB again.

Re: Ask HN: Go-to web stack today?

#275

- On the frontend, use React with TypeScript. Create React App now makes it dead easy. Just do: npx create-react-app myapp --typescript - Do not use redux until you know React well. You might not need it. If you do need it, use `redux-starter-kit` offered by the core Redux team. - For backend, just use Django (or Rails). Elixir's Phoenix is also very well thought out. - If you use node: express, sequelize. Async/awai…

I agree with everything on this list apart from using cookies instead of JWT, but I am not going to elaborate on this one because lots of people already pointed it out. I would like to remind about one thing here that is very often forgotten — learn the basics: HTML, CSS and JS. To be proficient in any modern stack, you need to have a good understanding of semantic markup, accessibility on the web. To understand why…

> but I am not going to elaborate on this one because lots of people already pointed it out...

If there’s any meaningful reason use JWT, it would probably be helpful to articulate it for people.

(I would myself, but I consider JWT to be actively harmful to scaling and security in most implementations (specifically global server side refresh token stores which act as a single point of failure), poorly understood and generally speaking inferior to cookies in almost every respect... but necessary, in some, limited circumstances... but if you have any actual, non hand wavey reason why they’re useful for a general, single domain site, I’d be interested to hear why)

Re: Ask HN: Go-to web stack today?

#276
C# ASP.NET Core Razor Pages SQL Server Dapper vanilla JS

Azure for hosting and peripheral services

It is truly a breeze to put together server rendered apps with this stack. I come from a JS heavy background but find myself so much more productive with C#.

It's not trendy, but that's mostly because it's Microsoft. But it is powerful and productive.

Re: Ask HN: Go-to web stack today?

#277

- On the frontend, use React with TypeScript. Create React App now makes it dead easy. Just do: npx create-react-app myapp --typescript - Do not use redux until you know React well. You might not need it. If you do need it, use `redux-starter-kit` offered by the core Redux team. - For backend, just use Django (or Rails). Elixir's Phoenix is also very well thought out. - If you use node: express, sequelize. Async/awai…

I thought jwt was pretty okay solution for authentication and authorization. any particular reason that you dont recommend?

Re: Ask HN: Go-to web stack today?

#279

Earlier quoted context omitted.

> Now, I've barely tested Django, but I would not go the python way unless you have a good (other) reason. Rails seems to have a much more developed web development community. Having used both Django and Rails extensively recently, I disagree. Maybe 5 years ago, yes. For two examples I ran into yesterday, check out https://github.com/rails/rails/issues/32790 and https://github.com/rails/rails/issues/31419 which featu…

George Claghorn doesn't seem like an easy person to work with.

[deleted]

Re: Ask HN: Go-to web stack today?

#280

Earlier quoted context omitted.

Although I think it's not a big issue, I'd look into Vue instead of React. Imo it's simpler and give you a more complete solution out of the box (routing, reactive data layer). Now, I've barely tested Django, but I would not go the python way unless you have a good (other) reason. Rails seems to have a much more developed web development community. Node might be a great choice due to you being able to use the same la…

> Now, I've barely tested Django, but I would not go the python way unless you have a good (other) reason. Rails seems to have a much more developed web development community. Having used both Django and Rails extensively recently, I disagree. Maybe 5 years ago, yes. For two examples I ran into yesterday, check out https://github.com/rails/rails/issues/32790 and https://github.com/rails/rails/issues/31419 which featu…

Does it really count as Rails Core dumping on a widely requested feature when (in the second link) both rafaelfranca and dhh are in favor?
Post reply on HN