Live data from Hacker News

Ask HN: Go-to web stack today?

news.ycombinator.com

71–80 of 453 posts

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

#74

- 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 you need a CSS in JS solution, you have to master CSS and understand its issues. Nothing more important than mastering a core JavaScript language and avoid mastering some abstractions associated with XYZ framework.

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

#75
post #13

React hosted in an S3 bucket, API Gateway with one Lambda function per model, single DynamoDB table with overloaded indexes. This will cost you pennies to spin up and get traction with.

What is an overloaded index? Does this mean creating an index in every "column"?

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

#76
post #41

If your experience is mainly in Python ecosystem Django is just hard to beat. If it's Java based then things are more complicated I think - these days I have been avoiding heavyweight back ends and using minimalist stacks of which Micronaut [1] is my favorite. I use it with Groovy (though it supports Java / Kotlin), Postgresql as database and combine it with VueJS on the front end for a very agile but highly performa…

As someone coming to modern Java from the Python world, I've been pretty happy with Spark (no, not that Spark - it could really do with a more unique name): http://sparkjava.com . It's very simple, doesn't require any of the Spring madness, and looks a lot like Flask in its minimalistic approach. It has a (pretty rough) Kotlin version.

I've also dabbled with Ninja (http://www.ninjaframework.org) but that was ultimately disappointing. It relies heavily on dependency injection, which is not my cup of tea.

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

#77
post #6

Professionally and for personal projects I go with Elixir. Having 99% transparent parallelization of any task is irreplaceable in our multi-core CPU era (especially having in mind that CPUs seem to have more and more cores lately -- see AMD). Functional programming improves the way you reason about your tasks as well. Having a simple language living inside a 30-year old runtime and being able to reach for pretty adva…

Elixir/Erlang is concurrent, not parallel though.

Erlang is as parallel as it gets. Async message passing actor model. The runtime will distributed the processes (actors) over the available CPUs.

See: https://www.culttt.com/2016/07/27/understanding-concurrency-...

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

#78
Frontend: Angular7 (or Angular8 next week :D).

Backend: Django or Rails.

Database: PostgreSQL.

Deployment: Heroku

Code Sharing: GitHub or Gitlab.

CI: GitLab CI if you're on Gitlab or CircleCI if on GitHub.

CodeCov.io for code coverage

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

#79
post #17
post #13

React hosted in an S3 bucket, API Gateway with one Lambda function per model, single DynamoDB table with overloaded indexes. This will cost you pennies to spin up and get traction with.

how do you handle SEO in this case? AFAIK most crawlers (including facebook etc) don't load javascript, so I'm always wondering how to allow dynamic pages (say a product's page) to be crawled and have a og meta tags. If this had a great solution, boy things today would be much easier!

Google will load JavaScript but you can also use react-static to do static SSR if you’d like your first render to be fast or you’d like better SEO from crawlers that don’t read JS.

Ping me if you’d like to know more.

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

#80

- LitElement + Redux for frontend (web components) https://github.com/Polymer/lit-element - Golang + Postgres for backend

Web Components are highly underappreciated as a front-end framework. With Microsoft moving over to Blink for their browser engine, they should be usable natively anywhere now. If you want a standards based approach, go with Web Components rather than React or Vue or whatever is the current flavor of the month. LitElement is a thin layer on top of the standard to make binding and templating easier but still generates standards-based web components. And performance is theoretically better than virtual DOM.

BTW, LitElement is the bleeding edge front-end framework from the Chrome team at Google.

Post reply on HN