HackerTrans
TopNewTrendsCommentsPastAskShowJobs

davelee

no profile record

comments

davelee
·há 6 meses·discuss
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/
davelee
·há 9 meses·discuss
I use the `%f` format option. I have a `bn` alias ("branch name"):

git show --no-patch --format=%f [<commit>]
davelee
·há 12 meses·discuss
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.
davelee
·há 2 anos·discuss
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.
davelee
·há 2 anos·discuss
Swift calls these precondition() and assert(). Preconditions are enabled in release (and debug) builds, and asserts are enabled in debug builds only.