Hacker News new | ask | show | jobs
by marcus_holmes 2823 days ago
I'm writing the backend in Go, so static typing is not where the resistance is coming from ;)

It's more like separation of concerns. I want Postgres to take care of data integrity. I want Go to take care of type safety. I want to give Vue all the flexibility it needs to handle user interaction. I don't really want to care about types in the UI, because Go can sort out whatever it sends to the server.

If I have to start writing code in the browser to translate between Go structs and TS classes then that's a step too far imho.

1 comments

Try it before saying something like that.

TS is like swift, and it does not require type declaration. A lot is automatic.