• 3 Posts
  • 285 Comments
Joined 9 months ago
cake
Cake day: January 22nd, 2024

help-circle




  • davidagain@lemmy.worldto196@lemmy.blahaj.zoneDeltarule
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    1 day ago

    Indeed, indeed.

    No need to apologise for posting c++ in the channel. The programming world owes a lot to Prof. Stroustrup. I enjoyed your reply a great deal.

    You have two choices: firstly, a regular regular attribute, where you can Suckable myThing; and myThing.CheckAndSuck; etc to your heart’s content, and indeed no global variables are being sucked.

    But you can also declare static bool unsucked; and what is a class variable if not a global variable by another name?

    In fact, what is to stop your innocent-sounding accessor method from nuking the filesystem or calling memLeak.recurse();?

    I’m not sure that these things keep you up at night, but you have my sympathy if they do.

    If there was anything I could do to help you relax after a stressful day of multiple inheritance and manual memory management, I would.

    Well, except that of course. I mean, we all draw the line somewhere.

    Unless we’ve had too much to drink or smoked too much weed, in which case boundaries seem less important at the time.

    One time in college, my friend…

    but no, that’s another story for another thread.


  • davidagain@lemmy.worldto196@lemmy.blahaj.zoneDeltarule
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    2 days ago

    Your naming advice is universally good.

    However, if this was a functional programming language, there wouldn’t be any mutable global variables to be unaware were being examined, nor could Suck do any sucking unless it were passed the thing to suck and returned the sucked thing.

    In this way the subtle class of bugs that you both are warning against would be impossible to introduce.

    Depending on the kind of sucking that Suck does, however, you may perceive the global invisibility and availability of the sucking as an advantage in this case. But possibly not if the code is your girlfriend/boyfriend.












  • Can verify: am Brit.

    Liz truss tried the libertarian experiment, sidestepped the Office for Budget Responsibility that her own party set up so that they were prevented from announcing the forthcoming shitshow (because she correctly thought they would be doom and gloom about it), tanked the economy in less than one week, blamed the media for it, blamed not going far enough for it, blamed the Chancellor of the Exchequer for it, sacked him, said she wouldn’t resign but was famously outlasted by a lettuce.

    Now she simps for the republicans but is largely ignored by them. She still maintains she was right, which is par for the course for idiot lying right wingers.


  • They elected him because inflation was awful in Argentina for a long time. He said he would improve it, but he made it much, much worse. It’s starting to stabilise back down to the original awfully high levels he inherited from the terrifyingly stratospheric levels he took it to, simply because the people really have no money left and aren’t buying anything and the shopkeepers can’t raise prices too fast, so of course he’s claiming that his policies are working because it’s getting better.

    Economists suspect that shutting down the whole economy for lack of cash after astronomical inflation isn’t the strong long term solution to inflation that the libertarians like to claim they’re creating.

    He got rid of rent controls and other price controls. Because it would fix inflation, apparently.

    So yeah, he got elected because the economy has been bad for a long time and they haven’t tried far right in quite a while. It’s got even worse of course.