News for hackers. Stuff that matters.
Re:Ask HN: What technology is “cutting edge” in 2022? by sam_lowry_ on Monday January 24, 2022 @08:13AM (#30057156)
OpenAPI must die. It allows to describe REST in a quite limiting manner. There's only one way to implement callbacks. There is no Websocket support nor any hint at async communication protocols.

OpenAPI is OK for prototyping, but production-grade performance-tuned software will likely break out of what OpenAPI allows to spec.

Re:Ask HN: What technology is “cutting edge” in 2022? by BerislavLopac on Monday January 24, 2022 @08:49AM (#30057513)
> There is no Websocket support nor any hint at async communication protocols.

Both of these things are out of scope for OpenAPI. It's a separate discussion whether they should be or not, but they are currently not. For async protocols, there is AsyncAPI [0], FWIW.

Do you know of an alternative spec format that would cover what you're missing with OpenAPI?

Re:Ask HN: What technology is “cutting edge” in 2022? by sam_lowry_ on Monday January 24, 2022 @09:49AM (#30058246)
Anything that stands between the programmer and the code is doomed to be abused by those who can't.

The whole concept of specifying an API in a DSL should be limited to the domain and not be standardised.

OTOH, I am all for literate programming that combines the art of writing prose and code like in Jupiter Notebook. Among competitors to OpenAPI I keep an eye on API Blueprint. While it leans more towards prose than code, it is a valuable tool to document APIs.

Re:Ask HN: What technology is “cutting edge” in 2022? by BerislavLopac on Tuesday January 25, 2022 @02:08AM (#30069035)
> Anything that stands between the programmer and the code is doomed to be abused by those who can't.

Those who can't what? If you mean the ability to code, I don't understand how is that related to API specifications.

> The whole concept of specifying an API in a DSL should be limited to the domain and not be standardised.

Why exactly?