This is the shit you feel when you’re high
lobsticle 🦞
- 0 Posts
- 11 Comments
Joined 2 years ago
Cake day: July 25th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
lobsticle 🦞@lemmy.worldto Lemmy Shitpost@lemmy.world•Call me an idiot, but I would die laughing even if something like this happened to me20·2 years agoHURRY! HURRY HAAAARRRRRRRD!
My curling peeps will know what I’m talking about.
lobsticle 🦞@lemmy.worldto politics @lemmy.world•House Approves Biden Impeachment Inquiry as G.O.P. Hunts for an Offense31·2 years agoAt least the NYT came up with an accurate headline this time.
lobsticle 🦞@lemmy.worldto World News@lemmy.world•Chinese celebrity chef offends China with egg fried rice videoEnglish8·2 years agoThe Wang Gang strikes again!
lobsticle 🦞@lemmy.worldto Fediverse@lemmy.world•I rent a vps to run fediverse instances. Here's what I've foundEnglish4·2 years agoI am also interested in the answer to this and which service the author is using.
lobsticle 🦞@lemmy.worldto politics @lemmy.world•Mike Johnson Admits He and His Son Monitor Each Other's Porn Intake in Resurfaced Video41·2 years agoNo way these motherfuckers are uncircumcised.
lobsticle 🦞@lemmy.worldto politics @lemmy.world•Trump leading Biden in five swing states: Poll14·2 years agoQuick, someone should ask President Dukakis how he felt about the polls, putting him 15 points up on George H.W. Bush in the summer of '88.
lobsticle 🦞@lemmy.worldto politics @lemmy.world•Exclusive: Hawley and Booker propose bipartisan child labor law legislation2·2 years agoYou mean like a politician should do?
lobsticle 🦞@lemmy.worldto Programming@programming.dev•Over 65 years ago this month, researchers ran the first FORTRAN program13·2 years agoAnd the program finally completed today! 🎉
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.