Live data from Hacker News

Ask HN: Fastest/easiest framework to build a web application in 2020?

news.ycombinator.com

91–93 of 93 posts

Re: Ask HN: Fastest/easiest framework to build a web application in 2020?

#91
post #4

My personal picks would be: - React for the front end ( https://reactjs.org ) - Node.js for your back end ( https://nodejs.org ) - Deploy using Adapt, which ties your front and back end together using React-like components. ( https://adaptjs.org ). - (Optional) If this project is larger or commercial, definitely use TypeScript on all 3 of the above ( http://www.typescriptlang.org/ ) [Disclosure: I'm a maintainer of A…

Why do you advise TypeScript as a definite for larger or commercial projects? Thank you very much.

In a small project, it's pretty easy for one or two devs to mentally keep track of the codebase and also makes any refactoring fairly quick.

As a project gets larger (more code or more devs), each dev spends more and more time figuring out what the correct types need to be when using various internal APIs. Refactors get harder because it becomes harder to know whether you've correctly found and changed each place that was needed.

And although all projects have this to a certain degree, one typical goal of a commercial project is a higher quality bar for software while still optimizing amount of effort to get that quality. (And commercial projects are often larger too.)

TypeScript helps with these issues (and others). In my opinion, it increases developer productivity for all but the smallest JavaScript projects. It's a combination of both the static typing and the tools available that help the dev immediately, as opposed to waiting for a compile or test run.

I'm actually passionate enough about the topic that I have an old blog article about it: https://medium.com/hackernoon/3-reasons-why-we-use-typescrip...

Re: Ask HN: Fastest/easiest framework to build a web application in 2020?

#92
post #91

Earlier quoted context omitted.

Why do you advise TypeScript as a definite for larger or commercial projects? Thank you very much.

In a small project, it's pretty easy for one or two devs to mentally keep track of the codebase and also makes any refactoring fairly quick. As a project gets larger (more code or more devs), each dev spends more and more time figuring out what the correct types need to be when using various internal APIs. Refactors get harder because it becomes harder to know whether you've correctly found and changed each place tha…

Thanks a lot for the response. I will take a look at your blog.

Re: Ask HN: Fastest/easiest framework to build a web application in 2020?

#93
My go-to are Next.js (https://nextjs.org/) and Hasura (https://hasura.io/). Graphql has a bit of a learning curve if you haven't worked with it, but those two tools deliver a pretty amazing developer experience.

Next.js is react + ssr + routing and more. Hasura exposes an auto-generated graphql API in front of a postgres instance, with hooks for auth/authz and much more.

Post reply on HN