To me, TypeScript is easily the most attractive language for implementing...
To me, TypeScript is easily the most attractive language for implementing web services.
Why? Because we can build the UI and services *in the same language*.
Benefits:
✅Share code between client and server (types, validation, response shapes, etc).
✅Easily jump between UI and service code.
✅More easily hire developers.
✅No context switching between languages, editors, etc. Use the same dev tooling on both sides!
Many companies are wasting a fortune by needlessly using different languages. Separate languages on the client and server creates overhead, friction, and duplication.
I'm not saying to build everything in TypeScript. I'm saying there are good reasons to build endpoints in TS.
For example, take a look at @trpcio.
Declare types once. Share them on client and server. Validate responses at runtime.
Enjoy the peace of mind that comes from *knowing* your client and server logic and types are in sync...because they literally use the same code. 🔥