sorted by: new top controversial old
[-] lobsticle@lemmy.world 16 points 5 months ago

As an old Perl jockey, you can pry my backticks out of my cold, dead hands.

[-] lobsticle@lemmy.world 1 points 7 months ago

It sounds like what you are looking for is a form of an object request broker. Provide the name of a class as a string (or, if the set of desired objects is more constrained, an integer or enum or something similar) and then build an instance based on that key. Generally, all these objects typically inherit from some base class like Object so that the broker can return an Object* and the client can dynamic cast it down to the actual thing. I've used a pattern like this in the past that worked pretty well using macro magic to enable classes eligible to be instantiated through the broker (register the key and the class name with the broker). This was pre-C++03, so doubtless there are cleaner and more modern ways to implement such a thing these days.

[-] lobsticle@lemmy.world 8 points 9 months ago

The Wang Gang strikes again!

[-] lobsticle@lemmy.world 61 points 10 months ago

Very disappointing not to see an #if 0 (my personal go-to for decades) in this meme. 😞

[-] lobsticle@lemmy.world 39 points 10 months ago

The text in the image represents how accurate it tends to be whenever I try to OCR a document.

[-] lobsticle@lemmy.world 4 points 10 months ago

I am also interested in the answer to this and which service the author is using.

[-] lobsticle@lemmy.world 0 points 10 months ago

This is fantastic work, and anybody who downvoted this clearly did not get it.

[-] lobsticle@lemmy.world 20 points 10 months ago

There is so much to unwrap here.

[-] lobsticle@lemmy.world 2 points 11 months ago

This is good too.

[-] lobsticle@lemmy.world 1 points 11 months ago

I thought OP was looking for minced oaths that could be used in its place, and this is the first thing that came to mind for me. I use this one all the time because I try not to drop the big one around my five- and three-year-olds.

[-] lobsticle@lemmy.world 27 points 11 months ago

This is one of the stupidest things I've seen online in a very long time, and of course I laughed for a solid minute. Well done, OP.

[-] lobsticle@lemmy.world 29 points 11 months ago

My grandchildren are going to be very excited to get this new XBox! - some Grandma somewhere

view more: next ›

lobsticle

joined 1 year ago