I think your way is better, but we’re very reliant on express because of our heavy Azure integration and how that’s just easier with express because Microsoft has a lot of tools for it.
Show HN: Instant API – Build type-safe web APIs with JavaScript
11–20 of 88 posts
Re: Show HN: Instant API – Build type-safe web APIs with JavaScript
#12While this is a neat project, it's not Type safe, as nothing in the pipeline will inform you about a breaking type error prior to running it and seeing the validation fail. That usually means in production. To catch those errors early before they hit production, you use a type system, and one that exists for JavaScript and works really well, is TypeScript, and I find it mind-boggling that there is no mention of it in this entire document discussing "type safety".
Re: Show HN: Instant API – Build type-safe web APIs with JavaScript
#13Type Safety != Runtime Type Validation. Something being Type Safe means that I, the programmer, am Safe from making type mistakes while developing and maintaining the software. For that to be possible, you need a type system that is embedded in the language and the editor and can continously analyze all of your code types to be correct. Type safe means that any breaking change to any interface will immediately error…
Re: Show HN: Instant API – Build type-safe web APIs with JavaScript
#14I think it’s very cool. We went a similar, yet different route into the realm of code-generation rather than building our own api framework. Basically we have something which can generate, types, SQLscripts, data and type conversion and security and an express API service/controller based on a mermaid table input. I think your way is better, but we’re very reliant on express because of our heavy Azure integration and…
Re: Show HN: Instant API – Build type-safe web APIs with JavaScript
#15Re: Show HN: Instant API – Build type-safe web APIs with JavaScript
#16Please don’t call this mess “type-safe”
Edit: Parent added quotation marks and hyphens after my comment. I stand proudly by my cutesy remark.
Re: Show HN: Instant API – Build type-safe web APIs with JavaScript
#17Type Safety != Runtime Type Validation. Something being Type Safe means that I, the programmer, am Safe from making type mistakes while developing and maintaining the software. For that to be possible, you need a type system that is embedded in the language and the editor and can continously analyze all of your code types to be correct. Type safe means that any breaking change to any interface will immediately error…
My claim is only type-safety at the HTTP layer. This claim is intentionally specific! As per another comment in this thread, pedantry is the most valuable currency on HN, so this sort of feedback is not only expected but welcome.
Re: Show HN: Instant API – Build type-safe web APIs with JavaScript
#18Earlier quoted context omitted.
My claim is only type-safety at the HTTP layer. This claim is intentionally specific! As per another comment in this thread, pedantry is the most valuable currency on HN, so this sort of feedback is not only expected but welcome.
It's not pedantry, you're using the term wrong. I understand why it can be confusing if you are just using JavaScript and you haven't had the experience of type-safe codebases. Type-safe does not refer to runtime anything, it refers to the developer being able to refactor their interfaces safely, meaning that the type system informs you of any errors across the entire codebase and all of the dependants of that softwa…
Re: Show HN: Instant API – Build type-safe web APIs with JavaScript
#19Type Safety != Runtime Type Validation. Something being Type Safe means that I, the programmer, am Safe from making type mistakes while developing and maintaining the software. For that to be possible, you need a type system that is embedded in the language and the editor and can continously analyze all of your code types to be correct. Type safe means that any breaking change to any interface will immediately error…