Re:Show HN: REST Alternative to GraphQL and tRPC
by tnolet on Tuesday October 10, 2023 @12:27PM
(#37834236)
How is designing an API in YAML “fast”? Isn’t using code much, much faster for the average dev?
Re:Show HN: REST Alternative to GraphQL and tRPC
by anttiviljami on Tuesday October 10, 2023 @12:35PM
(#37834321)
Speaking personally as a full stack engineer, unless the backend is completely trivial to implement I find it much faster and more efficient to write and iterate JSON schema while implementing frontend features than actually implement backend logic first.
1. Design your API in yaml 2. Run a mock API 3. Develop the App, iterate mock API 4. Implement backend and ship
No code generation needed. Generate types if you want.