logoalt Hacker News

david422last Tuesday at 9:08 PM2 repliesview on HN

I do it naively. Maintain the backend and frontend separately. Roll out each change in a backwards compatible manner.


Replies

jim201last Tuesday at 9:42 PM

I used to dread this approach (it’s part of why I like Typescript monorepos now), but LLMs are fantastic at translating most basic types/shapes between languages. Much less tedious to do this than several years ago.

Of course, it’s still a pretty rough and dirty way to do it. But it works for small/demo projects.

Etherytelast Tuesday at 9:31 PM

So in short you don't share types. Manually writing them for both is easy, but also tedious and error prone.

show 1 reply