507
submitted 1 month ago* (last edited 1 month ago) by sjmarf@sh.itjust.works to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] the_of_and_a_to@lemmy.world 77 points 1 month ago

It's always funny naming a function which removes a child object from a parent object. I've stuck with "abandon child" so far.

[-] FooBarrington@lemmy.world 53 points 1 month ago

I like "orphanize" - one of those things that shouldn't be a word, but is!

[-] pkill@programming.dev 33 points 1 month ago

umbilicalCord.cut()

[-] Iron_Lynx@lemmy.world 22 points 1 month ago

NGL, Orphaniser or Orphanizer sounds like one hell of a metal band name

[-] FooBarrington@lemmy.world 9 points 1 month ago* (last edited 1 month ago)

Alternatively a depressingly realistic look at the consequences of war for non-participating children, couched in the veneer of an 80s Sci-Fi movie.

"YOUR PARENTS WILL NOT BE BACK"

[-] ivanafterall@kbin.social 6 points 1 month ago

Or a Shark Tank-style infomercial product. "It's The Orphanizer, From Ronco!"

[-] FooBarrington@lemmy.world 5 points 1 month ago

What would it do? Delete all memories of a childs parents from their brain, making them think they've been orphans all along?

[-] ivanafterall@kbin.social 1 points 1 month ago

Seems like it'd be easier and more honest to have it just kill the parents.

[-] FooBarrington@lemmy.world 2 points 1 month ago

I assumed it's something parents buy for their children.

[-] PoolloverNathan@programming.dev 3 points 1 month ago* (last edited 1 month ago)
impl<'a, T: Child> ChildRef<'a, T> {
  fn orphanize<T: Child>(r: Self) -> Orphan<T>;
}
[-] IWantToFuckSpez@kbin.social 26 points 1 month ago

Just rename the child to Hamas. IDF will kill it for you.

[-] isVeryLoud@lemmy.ca 9 points 1 month ago* (last edited 1 month ago)

Garbage collection??????

/s

[-] jjagaimo@lemmy.ca 23 points 1 month ago

SendToBoardingSchool()

[-] PoolloverNathan@programming.dev 9 points 1 month ago* (last edited 1 month ago)
-- |Removes the given object from its current parent, if any, and then adds it as a child of the other given object.
kidnap :: ChildBearing c p
       => p -- ^The kidnapper.
       -> c -- ^The child to kidnap.
       IO ()
[-] Lime66@lemmy.world 2 points 2 weeks ago
this post was submitted on 14 May 2024
507 points (94.6% liked)

Programmer Humor

18250 readers
1 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS