Comment by semiquaver

1 day ago

For one, you’re not using TypeScript server-side. Whatever execution engine you are using is executing transpiled or JavaScript.

And yeah, I don’t know who in their right mind is starting projects in TS/JS/python these days except when they don’t have an option.

"In their right mind?" I wouldn't start a project in anything other than TypeScript now. My platform is a monorepo across web and native mobile (Expo), and is TypeScript throughout. All my types flow everywhere automatically. Even the shape of a database table is shared with the native app with tRPC. Nothing can break the type contract anywhere. How would you do that with another language?

> I don’t know who in their right mind is starting projects in TS/JS/python these days except when they don’t have an option.

I agree, although I would say that for web projects, writing the backend in TS is still a really great option because it means you can use TSX, which has a much better UX than any alternatives. For example https://usefresh.dev/ is much nicer to use than any non-TS options I've found, including Go and Rust where you basically end up using text-based templates along the lines of Jinja.