HackerTrans
TopNewTrendsCommentsPastAskShowJobs

davelee

no profile record

comments

davelee
·6 เดือนที่ผ่านมา·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
·9 เดือนที่ผ่านมา·discuss
I use the `%f` format option. I have a `bn` alias ("branch name"):

git show --no-patch --format=%f [<commit>]
davelee
·12 เดือนที่ผ่านมา·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
·2 ปีที่แล้ว·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
·2 ปีที่แล้ว·discuss
Swift calls these precondition() and assert(). Preconditions are enabled in release (and debug) builds, and asserts are enabled in debug builds only.