Earlier quoted context omitted.
Even better: https://reactjs.org/docs/context.html
Why do so many people forget about context?
Ask HN: Go-to web stack today?
221–230 of 453 posts
Re: Ask HN: Go-to web stack today?
#222- 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…
Good advices: React (but check also Vue if you don't like JSX), CRA is awesome, all batteries incl with a great dev experience
finally check Docker, and check css in js solutions like Tachyons paired with React which is amazing and changed entire workflows
re typescript: there are a lot of different opinions. if you are in a big team and code maintenance is crucial then you need TS if you are solo, it might slow you down despite vs code's ide support (while TS is good it also takes a lot of JS' dynamic nature which lets devs prototype fast)
as a rule of thumb, don't invest time in stagnating or decling stacks, not that they are bad but it makes a difference if the current frontrunner can choose between 30 frontend cutting edge libs like React or just 2. Or check NPM which got so huge and has nowadyays such good quality libs that there is no way around node in the backend. Everything is there and relevant stuff is actively maintained.
Re: Ask HN: Go-to web stack today?
#223Also people mention nginx, again use apache because it has letsencrypt has easy support for HTTPS certificate.
Re: Ask HN: Go-to web stack today?
#224I develop 100% on a macbook.
Re: Ask HN: Go-to web stack today?
#225- 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…
Some good advice is there but also a lot of misleading stuff. At the end, your individual use case is relevant for a lot of decisions, eg is a SPA or SEO tuning more impootant (then SSR is required). Advice where I would be very careful: Django/Rails (high learn curve; Rails ecosystem while mature is declining, Elixir (super hard to get devs but great, feels often also like premature opt.), relational DBs are great b…
JSX is the worst invention of the decade. It's ugly, useless and solves a non-issue. I don't recommend it at all.
Re: Ask HN: Go-to web stack today?
#226Re: Ask HN: Go-to web stack today?
#227Re: Ask HN: Go-to web stack today?
#228Re: Ask HN: Go-to web stack today?
#229Earlier quoted context omitted.
There are simpler ways to do global state management than redux. The scenario you described is nothing new. Redux is new. How do you think people solved this problem before Redux? Does redux have a better way of solving this old problem? How would you solve this problem in an ASP.NET or JSP application that has server-side rendering? How would you solve it in an iOS app? My point is that this is a pedestrian, every-d…
If this is true > My point is that this is a pedestrian, every-day problem that doesn't need a complicated solution. then you should be able to answer the question below, yes? > How do you think people solved this problem before Redux?
Re: Ask HN: Go-to web stack today?
#230Vue.js for the frontend.