Re:Show HN: REST Alternative to GraphQL and tRPC
by gadflyinyoureye on Tuesday October 10, 2023 @02:49PM
(#37835923)
Auto generate the contract. That might be easier in some languages like TypeScript or Java, but it’s just done as part of the build.
[ Parent
| on HN ]
Re:Show HN: REST Alternative to GraphQL and tRPC
by anttiviljami on Tuesday October 10, 2023 @02:57PM
(#37835999)
You don’t actually want that.
Code should not inform design.
Design informs code.
Re:Show HN: REST Alternative to GraphQL and tRPC
by gadflyinyoureye on Tuesday October 10, 2023 @03:27PM
(#37836357)
Use the code to do the design. Don’t implement the damn thing. Just work in a nicer medium like Typescript. Add attributes. Remove attributes. Move things around in the refactoring tool. Then generate the doc. Forget about the whole “this is what the database does” stuff.