Hacker News new | ask | show | jobs
by gadflyinyoureye 981 days ago
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.
1 comments

You don’t actually want that.

Code should not inform design.

Design informs code.

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.