2 ms·
TypeScript is probably your best bet. Static typing the same classes on the front and backend is going to make any REST API easier to develop. Another alterna
by rockostrich 9y ago
TypeScript is probably your best bet. Static typing the same classes on the front and backend is going to make any REST API easier to develop. Another alternative is using something like protobuf [1] to define your data models.
[1] https://github.com/google/protobuf https://github.com/google/protobuf
- ralmidani 9y agoI'm interested in TS, but I've been working with CoffeeScript (and Python) for 2 years and am very fond of significant whitespace (and not at all fond of semicolons and curly braces). There was a Typed CoffeeScript project, but nothing is active now. And CoffeeScript 2, with built-in support for JSX, is in beta.