News for hackers. Stuff that matters.
Re:Hyrum's Law by sedatk on Saturday January 08, 2022 @09:13PM (#29859167)
> With a sufficient number of users of an API, it does not matter what you promise in the contract: all observable behaviors of your system will be depended on by somebody.

I find it too verbose. How about this alternative: "Every undocumented behavior of a system eventually becomes a contract."

Re:Hyrum's Law by tooltower on Saturday January 08, 2022 @10:44PM (#29859801)
Ah, so I can stop people from depending on internal details by documenting it! /s

I'd use the word "observable" rather than "undocumented"

Re:Hyrum's Law by kijin on Sunday January 09, 2022 @07:52AM (#29862799)
> Ah, so I can stop people from depending on internal details by documenting it! /s

That actually makes sense. If some behavior is not to be relied upon, document it explicitly as such. With scary warning if necessary.

At least this will provide you with more ammunition when your update inevitably breaks someone's workflow.

Re:Hyrum's Law by sedatk on Sunday January 09, 2022 @04:24PM (#29867463)
I mean documented features are observable too; I wanted to narrow the scope.
Re:Hyrum's Law by duxup on Saturday January 08, 2022 @11:01PM (#29859922)
Honestly I needed to read your phrasing to understand the original phrasing of the law.

Thank you.

Re:Hyrum's Law by the8472 on Sunday January 09, 2022 @12:11AM (#29860391)
Someone depending on it does not mean it becomes the contract.

Someone depending on implicit behavior means https://xkcd.com/1172/ and you shrug and break them anyway because the contract never required you to uphold the property. It's called contract after all, there's a mutual relationship, not a one-sided one. Otherwise specifications would be meaningless and we would just tell people to read the source.