3 ms·
Neat post. I just spent a couple months in analysis paralysis trying to figure out what stack to use for a new website. So many pros/cons. I learned a ton and f
by bottlepalm 4y ago
Neat post. I just spent a couple months in analysis paralysis trying to figure out what stack to use for a new website. So many pros/cons. I learned a ton and feel like I'm up to speed with all the latest frameworks, backends, ORMs, etc.. I remember way back when loving PHP and since then I've used a ton of frameworks/languages for different jobs over the decades..
Anyways, I picked Next.js and am really liking it so far. It has the right mix of front and backend that is feeling really productive. Server side rendered that gracefully translates into something that can easily be updated client side.
I've got a test site set up pretty quickly, the frontend with react being one way data bound is a super simple data model to understand. TSX gives static typing with html templates which I love. Especially being able to use html in javascript. Components in react are simple to create easy to refactor code into. I've used MUI for controls and my site looks pretty good.
Testing was easy to setup for both the front and back end with jest. I can attach the debugger simultaneously to both the back and frontend code with the same instance of VS Code which is a neat trick. I can share the same TypeScript DTOs with server and client side code super easy. React Query and Axios work great communicating with the server. The hot reloading on save is super nice, I can make a change to front or backend and my site automatically updates while maintaining state.
It is a bit of a house of cards with so many different packages mashed together the chance is high at least one of them is going to be obsoleted. I do like frameworks that are more kitchen sink, that I can rely on for many many years. Part of reason for choosing Next/react is that it seems to be the most active. I really envy code bases in languages that never die - C, SQL, .Net, etc.. I'm definitely one of those people fatigued by the constant churn in our industry and I just want something I can be productive in, build a nice big app on, and won't get the rug pulled out from under me.
Anyways for now I feel like I found it - hopefully it has some good life ahead of it before the next big thing!