• whileloop@lemmy.world
    link
    fedilink
    arrow-up
    129
    ·
    1 year ago

    This could be so much longer.

    Killing children, class systems, so many programming language names, the ridiculous ways equality and order-of-operations are done sometimes. Plenty of recursion jokes to be made. Big O notation. Any other ideas?

      • Hoimo@ani.social
        link
        fedilink
        arrow-up
        42
        ·
        1 year ago

        GOTO is the only thing that makes sense. It’s the “high-level” concepts like for-loops, functions and list comprehension that ruined programming.

        series.append(series[k-1]+series[k-2]) for k in range(2,5)]

        RAVINGS DREAMT UP BY THE UTTERLY DERANGED

        • ChickenLadyLovesLife@lemmy.world
          link
          fedilink
          English
          arrow-up
          15
          ·
          1 year ago

          I started coding with TurboBasic, which included the helpful innovation of GOTO {label} instead of GOTO {line number}, which allowed you to have marginally-better-looking code like:

          GOTO bob

          bob:
          {do some useless shit}
          return

          which meant you essentially had actual, normal methods and you didn’t have to put line numbers in front of everything. The problem was that labels (like variables) could be as long as you wanted them to be, but the compiler only looked at the first two letters. Great fun debugging that sort of nonsense.

        • Vilian@lemmy.ca
          link
          fedilink
          arrow-up
          16
          arrow-down
          1
          ·
          edit-2
          1 year ago

          if goto make sense why don’t you go to get some removed

    • Lightor@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      1 year ago

      Masters and slaves

      Cloning

      Deploying code (that’s what you do with soldiers!!!1)

      Using Git to rewrite history.

      Atomic values (like the bomb!)

      These people are madmen.

      • Gustephan@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        One of the slave node’s child process failed, so the master node sent a signal to terminate the child and restart the slave

        There’s pretty solid reason my research group is pushing to use “head node and executor nodes” nomenclature rather than the old-school “master node and slave nodes” nomenclature, haha

      • xmunk@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        They always must add up - if they added down then they wouldn’t be floating points now would they!

  • Rin@lemm.ee
    link
    fedilink
    arrow-up
    110
    ·
    edit-2
    1 year ago

    while (true) { print(money) }

    isn’t that just crypto mining?

    • BastingChemina@slrpnk.net
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      This is basically what the bank are doing when you get a loan.

      When you get a $25k loan from a bank the banker does not take money from somewhere to put it in your bank account. The banker basically just add a +25k in your bank account that comes from nowhere.

      • tias@discuss.tchncs.de
        link
        fedilink
        arrow-up
        14
        ·
        edit-2
        1 year ago

        Thanks! In computer graphics it’s referred to as the “Utah teapot” because the 3D model was created at the University of Utah. But it was originally a Melitta brand teapot. It is still manufactured by German company Friesland, which I bought it from.

        Unfortunately it appears they recently had a fire and their webshop is temporarily closed, but I think you can also get it off of Amazon.

        • noughtnaut@feddit.dk
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          I read once that the original model didn’t have a bottom surface? Idk but I suspect that’s why it’s referred to as useless in the meme.

  • nyan@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    24
    ·
    1 year ago

    Enough people have thought of while (true){ print(money); } for manufacturers to have built stuff into printers to prevent that, alas.

  • Isoprenoid@programming.dev
    link
    fedilink
    English
    arrow-up
    22
    ·
    1 year ago

    Can someone explain this joke to me

    “I’m writing a recursive method with threads to optimize the CPU usage in a 0.02%

    I understand everything apart from the “in a 0.02%”. What does that mean? How can something be in a percentage?

    • peopleproblems@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      It’s a double joke. For programmers, it’s pretty useless unless your in high performance computing.

      If you’re on the nitty gritty OS or CPU itself, 0.02% optimization can mean significant improvememt of different things but because it is otherwise unitless, it is equally useless to the reader.

      • snowe@programming.dev
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        1 year ago

        “In a .02%” is nonsensical. They meant “by”. So it’s just a fail, not a joke.

  • LillyPip@lemmy.ca
    link
    fedilink
    arrow-up
    20
    ·
    edit-2
    1 year ago

    Socrates said books were dumbing down humanity because, since people could just look things up in books they wouldn’t have to memorise information anymore, and that made their brains soft.

    Ever since society began, some people have been convinced the next generation’s technology was going to be society’s downfall, whether it was Socrates’ books, the telegraph in the 1800s, radio, the (land line) telephone, dishwashers (women will become lazy and unsuitable wives and mothers), screened windows (society will collapse because you won’t hear your neighbours and pedestrians on the street, we’ll all become hermits and die holed up in our homes), comic books would rot the brains of the youth, then music, then video games… it goes on and on.

    So far, those predictions have never been true. Every older generation freaks out when the ones after come of age. It’s like societal growing pains.

    • eldain@feddit.nl
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

      I think this is one step further, that technology has become so abstract and complex that people who focus on different crafts and careers are using magical black boxes. It blows my mind how my neighbour goes through life without any concept of what a phone app is. He just uses functionality and memorized the associated logo. I’m an engineering wizard to him.

      • LillyPip@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Isn’t that true of pretty much everu technology, though? I remember in the late 70s there’d occasionally be a loud pop and a puff of smoke from the television, and I’d tag along with my dad to the tv shop to buy new vacuum tubes, then we’d remove the back of the television and do minor repairs. Everyone knew how to do that.

        My television today is a magic black box.

        • eldain@feddit.nl
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Exactly, my television is an ips lcd with an arm based programmable microcomputer with software that translates input signals for the display, LED backlighting and an internal power supply. Although, I wouldn’t be able to repair it, there are no spare parts.

          Every washing machine has an embedded system that controls the washing cycle and needed programming for that. That’s not common knowledge and they rather put functionality in their marketing than function.

          We need a right to repair and common instructions how to fix things, maybe that helps dissolving the magic.

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      1 year ago

      Some technologies actually have had unintended side effects, but not always the ones we saw coming. Artificial lights are killing all the insects which nobody really worried about and cars do kill tons of people, which we worried about in the 1920s. I don’t know what the deal was with leaded gasoline, that one was just bizarre.

      All in all, it’s just really hard to anticipate how society and technology will interact. We think about the environment now but I don’t know if any systematic progress has been made on predicting the human factor.

      screened windows (society will collapse because you won’t hear your neighbours and pedestrians on the street, we’ll all become hermits and die holed up in our homes)

      This one has actually come true to a certain measurable degree (see Bowling Alone, written at what is now the midpoint of the trend), but I don’t think it’s down to window screens.

  • 1024_Kibibytes@lemm.ee
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    Increasing the CPU optimization by 0.02% does seem crazy to me. If you’re going to spend time working on something, make it worthwhile. Also, isn’t while(true) {print(money)} Microsoft, Apple and Amazon:s business model?

      • Gork@lemm.ee
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Or if you’re scaling a large cluster of CPUs for parallel computations where a 0.02% increase can make a tangible difference in runtimes.

      • blackstrat@lemmy.fwgx.uk
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Only if you’d removed and fixed all other bottlenecks that would gain you more than 0.02%. And I’m not convinced there are many if any projects of any reasonable size where that has been the case.

  • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 ℹ️@yiffit.net
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    1 year ago

    while{true}{print “money”};

    moneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoney

    • funkajunk@lemm.ee
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      moneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoneymoney

  • spez@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    2
    ·
    edit-2
    1 year ago

    I always wonder what the original post was. Something like “Stop doing science!” or some shit but seriously rather than sarcastically.

  • festus@lemmy.ca
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    I see you met my boss.

    Not actually the case, but I am frustrated with them right now for not understanding the value of preventative work and R&D (I’m a Data Scientist).