News for hackers. Stuff that matters.

davelee

Re:Lessons from 14 Years at Google on Sunday January 04, 2026 @11:49AM (#46489689)
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/

Re:Git CLI tool for intelligently creating branch names on Friday October 31, 2025 @10:50AM (#45772597)
I use the `%f` format option. I have a `bn` alias ("branch name"):

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

Re:I Drank Every Cocktail on Thursday July 24, 2025 @10:33AM (#44671205)
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.
Re:Skipping Boring Functions in Debuggers on Thursday January 02, 2025 @12:40AM (#42571984)
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.
Re:Rust's Two Kinds of 'Assert' Make for Better Code on Sunday November 24, 2024 @01:46AM (#42226341)
Swift calls these precondition() and assert(). Preconditions are enabled in release (and debug) builds, and asserts are enabled in debug builds only.
Re:`tar` creator/extractor in ~100 lines of Prolog on Wednesday January 18, 2023 @11:37AM (#34428982)
A less common extension is .pro.
Re:Adventure in Prolog Tutorial (2016) on Sunday August 25, 2019 @01:31PM (#20794229)
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.
Re:Some Obscure C Features on Friday August 23, 2019 @09:58AM (#20777658)
I think that would be per file/translation unit. These values are unique across a linked binary.
Re:Some Obscure C Features on Friday August 23, 2019 @12:27AM (#20774511)
I've used this feature to create constants that are unique IDs.
Tip cash?
Re:Learn You a Haskell for Great Good on Tuesday August 21, 2018 @06:43PM (#17814517)
Terrible opinion.
> This probably isn't the right place to discuss the article

yeah, you're probably right.

It really sucks that this is the top comment. To use the cliche: This is why we can't have nice things.

Please consider the following as a more frank replacement tl;dr:

"My promises implementation didn't work out for me. Maybe I just didn't go about it the best way, but judge for yourself by reading about my individual experiences, references from 70's papers, a bunch of 'what ifs', no code, no benchmarks, no constructive alternatives, and repeated use of 'we' instead of correctly using 'I'."

Is the above unfair? Maybe somewhat, but if so only as unfair as your representation. I enjoyed your GC article, but any good points to take from "Broken Promises" (or your above comment) are impossible to see through the thickness of pejoratives.

Re:Learn You a Haskell is now in print on Tuesday March 29, 2011 @10:08PM (#2385458)
after reading it online, I preordered it right away (last December). Had to get some money in Miran's account. Glad it's done and ready to go.
Re:_why is no more on Wednesday August 19, 2009 @04:07PM (#773654)
I wanted to try Potion, it might be too late now.