Hacker Newsnew | past | comments | ask | show | jobs | submit | davelee's commentslogin

I know this as Hyrum's Law (which also comes from a Googler):

"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."

https://www.hyrumslaw.com/


I use the `%f` format option. I have a `bn` alias ("branch name"):

git show --no-patch --format=%f [<commit>]


Interesting idea, however, don't you first need to create the branch before you start committing commits?


I've only been to Italy once, and Riva del Garda is one of the places I visited. Funny to see it called middle of nowhere. Grappa is delicious, yet it is surprising to see that it's used in an "official" cocktail.


For lldb, checkout the `sif` command. It lets you step into a specific function by name. If the current line is `doFunStuff(a(), b())`, and I want to step past the a and b functions, then I can step into doFunStuff by running `sif Fun`. You could type in the whole name but it works matches by substring.


Swift calls these precondition() and assert(). Preconditions are enabled in release (and debug) builds, and asserts are enabled in debug builds only.


A less common extension is .pro.


I've had this experience earlier this year. It's great, and I too mention it when I can. For me, it's often a nicer alternative in cases I might otherwise consider SQL in some way. My only complaint is aggregate functions are harder to use.


I've used this feature to create constants that are unique IDs.


Wouldnt count macro work as well?


I think that would be per file/translation unit. These values are unique across a linked binary.


Tip cash?


Prime now says it's not allowed


How is Prime going to know you tipped cash?


Lots of things aren’t allowed.


That's gross.


Terrible opinion.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: