D•Scribe
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 3 months ago

fuck_around/find_out

sh.itjust.works

message-square
107
fedilink
944

fuck_around/find_out

sh.itjust.works

Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 3 months ago
message-square
107
fedilink
alert-triangle
You must log in or register to comment.
  • Dyskolos@lemmy.zip
    link
    fedilink
    arrow-up
    173
    ·
    3 months ago

    I really really dig the fuckaround/findout. It paints the try/catch with a more dreadful undertone and reeks of mystery.

    • noughtnaut@lemmy.world
      link
      fedilink
      arrow-up
      53
      ·
      3 months ago

      As well as the yeet keyword, I’m really friggin’ diggin’ this. [modernisation required]

      • enumerator4829@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        30
        ·
        edit-2
        3 months ago
        #define yeet throw
        #define let const auto
        #define mut &
        #define skibidi exit(1)
        

        The future is now!

      • Dyskolos@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        Oh yes, this one too of course!

    • jballs@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      33
      ·
      3 months ago

      The whole thing was pretty damn good all the way through. The only thing that had me wondering was

      Tea
      

      Until it got to

      SpillTea
      

      Well played.

      • Lka1988@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        7
        ·
        3 months ago

        NGL, that helped me actually understand the original function. It’s been over a decade since I’ve touched anything related to C.

      • Match!!@pawb.social
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 months ago

        the suspense!

      • Dyskolos@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        Indeed. I was unfair of me to pick only one favourite, as there are more candidates :)

    • merc@sh.itjust.works
      link
      fedilink
      arrow-up
      13
      ·
      3 months ago

      Yeah, I love that one.

      “Try” is too hopeful. “fuck_around” makes it clear that you know what you’re doing is dangerous but you’re going to do it anyhow. I know that in some languages wrapping a lot of code in exception blocks is the norm, but I don’t like that. I think it should be something you only use rarely, and when you do it’s because you know you’re doing something that’s not safe in some way.

      “Catch” has never satisfied me. I mean, I know what it does, but it doesn’t seem to relate to “try”. Really, if “try” doesn’t succeed, the corresponding block should be “fail”. But, then you’d have the confusion of a block named “fail”, which isn’t ideal. But “find_out” pairs perfectly with “fuck_around” and makes it clear that if you got there it’s because something went wrong.

      I also like “yeet”. Partly it’s fun for comedic value. But, it’s also good because “throw” feels like a casual game of catch in the park. “Yeet” feels more like it’s out of control, if you hit a “throw” your code isn’t carefully handing off its state, it’s hitting the eject button and hoping for the best. You hope there’s an exception handler higher up the stack that will do the right thing, but it also might just bubble all the way up to the top and spit out a nasty exception for the user.

    • Hadriscus@lemm.ee
      link
      fedilink
      arrow-up
      8
      ·
      3 months ago

      just what you want from code !

      • Dyskolos@lemmy.zip
        link
        fedilink
        arrow-up
        3
        ·
        3 months ago

        Exactly!

  • 9point6@lemmy.world
    link
    fedilink
    arrow-up
    101
    ·
    3 months ago

    And a decade or so ago it was LOLCODE that had me mildly concerned for the wellbeing of my peers.

    • Demigodrick@lemmy.zip
      link
      fedilink
      arrow-up
      118
      arrow-down
      1
      ·
      3 months ago
      HAI 1.2
      CAN HAS STDIO?
      IM IN YR LOOP UPPIN YR VAR TIL BOTH SAEM VAR AN 10
          VISIBLE SUM OF VAR AN 1
      IM OUTTA YR LOOP
      KTHXBYE
      

      A perfectly reasonable language. None of this Gen Z rubbish.

      Something something better times. Shakes stick at sky.

      • EntirelyUnlovable@lemmy.world
        link
        fedilink
        arrow-up
        16
        arrow-down
        1
        ·
        3 months ago

        Kids today just don’t know real code

        • moody@lemmings.world
          link
          fedilink
          arrow-up
          7
          arrow-down
          1
          ·
          3 months ago

          Hell, kids today don’t even number their lines anymore. What’s wrong with the world?

        • agentshags@sh.itjust.works
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          3 months ago

          My 21 year old is pretty into rust and html. Does that count?

          I’m pretty ignorant on most of it. In my youth, I just dabbled trying to lean basic on a c64 and AMOS on the Amiga though, so maybe not lol

          e: I think I missed the joke, probably because I’m old lol

    • cobysev@lemmy.world
      link
      fedilink
      English
      arrow-up
      22
      ·
      3 months ago

      For some reason, this just sparked an ancient memory of the Geek Code, which was a sort of signature block you could append to your emails and online bios to show off how much of a geek you were in the geekiest fashion possible.

      Goddamn I’m old.

      • AnUnusualRelic@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        3 months ago

        Wow, hadn’t thought of that thing in ages. Now all we need is for B1FF to bring back ASCII sword signatures.

      • Rob Bos@lemmy.ca
        link
        fedilink
        English
        arrow-up
        3
        ·
        3 months ago

        Remember it spawning a bunch of copycats? For a while every community had their own code block. I wrote one for a usenet group i was in at the time.

        alt.sysadmin and alt.sysadmin.recovery both had em iirc…

  • Lightfire228@pawb.social
    link
    fedilink
    arrow-up
    90
    ·
    3 months ago

    As much as this hurts, yeet; as an alias throw; is hilarious

    • BeardedGingerWonder@feddit.uk
      link
      fedilink
      English
      arrow-up
      24
      ·
      3 months ago

      Of all the gen z lingo yeet is the best.

      • Ropianos@feddit.org
        link
        fedilink
        arrow-up
        9
        ·
        3 months ago

        You can yoink that word from my cold, dead hands!

    • Jezza@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      3 months ago

      Funnily enough, that is a keyword in rust.

      (it’s a placeholder to remove any bikeshedding)

    • ratel@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Pretty sure this is from the esolang bussin

  • ScruffyDucky@lemmy.world
    link
    fedilink
    arrow-up
    44
    ·
    3 months ago

    For programmers who need action (cross-generational):

    https://lhartikk.github.io/ArnoldC/

    image

    • pigup@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      3 months ago

      😂

  • Scrubbles@poptalk.scrubbles.tech
    link
    fedilink
    English
    arrow-up
    37
    ·
    edit-2
    3 months ago

    Ugh. Just

    its_giving rizz ratios vibe;

    No more needless nesting plz

    • TwilightKiddy@programming.dev
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      3 months ago

      Considering vibe is probalby float, I doubt any exceptions can be thrown there, you can eliminate another useless scope.

      Even if it’s not float, I’d consider burning alive anyone who overrides an operator like this anyway.

      • Lemminary@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        3 months ago

        Float? Do you mean fax? Get with the program, old man

        • TwilightKiddy@programming.dev
          link
          fedilink
          English
          arrow-up
          3
          ·
          3 months ago

          If you confused period and fax intentionally, I commend the effort.

    • rumba@lemmy.zip
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 months ago

      Honestly, that’s about an inch away from Python…

      • cows_are_underrated@feddit.org
        link
        fedilink
        arrow-up
        4
        ·
        3 months ago

        Its literally bash

        • rumba@lemmy.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 months ago

          I’m speaking from a descriptive naming concept.

  • peoplebeproblems@midwest.social
    link
    fedilink
    English
    arrow-up
    30
    ·
    3 months ago

    That’s way better than my emoji based programming language.

    • jaybone@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      3 months ago

      I’m not so sure. Send a link.

      • peoplebeproblems@midwest.social
        link
        fedilink
        English
        arrow-up
        12
        ·
        3 months ago

        Haven’t published it yet.

        Here are comparisons:

        ⚖️

        🐲

        🐲⚖️

        ⚖️🐲

        🚫🐲⚖️

        • jaybone@lemmy.world
          link
          fedilink
          arrow-up
          10
          ·
          3 months ago

          Post the GitHub repo.

          I will help you make this happen.

          • peoplebeproblems@midwest.social
            link
            fedilink
            English
            arrow-up
            7
            ·
            edit-2
            3 months ago

            Sure! It doesn’t do anything yet, I just have a text file with how I’m intending to architect it.

            It quite literally started two four (edit: I can’t keep track of time) days ago.

            I’ll configure a repo, stick this in a file, and push it. I’ll reply with another comment so you (and others) can look it up.

            I’ve come up with some crazy stuff. Instead of something like “class” to indicate a class, it’s

            🏫 Followed by the emoji name of the class like 🖼️📁. So it will need to be able to handle operators in the name it’s amazingly gross! Properties and methods will also be emoji names, like to get the 🖼️📁 “File Name” it would be 📁💳.

            • jaybone@lemmy.world
              link
              fedilink
              arrow-up
              6
              ·
              3 months ago

              I was kind of being sarcastic. I haven’t written a compiler since I rode my dinosaur to college. Still it’s a funny idea. Could probably do it in C using a bunch of pound defines.

              • peoplebeproblems@midwest.social
                link
                fedilink
                English
                arrow-up
                6
                ·
                edit-2
                3 months ago

                I was thinking Rust, but that works too.

                Because then I could call the Language Spoons.

                It would as uncomfortable to use as it is to watch Rusty Spoons

  • Quacksalber@sh.itjust.works
    link
    fedilink
    arrow-up
    29
    arrow-down
    1
    ·
    3 months ago

    I’d take that yeet instead of return…

    • nialv7@lemmy.world
      link
      fedilink
      arrow-up
      23
      ·
      3 months ago

      So you like rust https://doc.rust-lang.org/beta/unstable-book/language-features/yeet-expr.html

      • wise_pancake@lemmy.ca
        link
        fedilink
        arrow-up
        17
        ·
        3 months ago

        This is a better argument to adopt Rust than memory safety or even sane package management.

  • mogoh@lemmy.ml
    link
    fedilink
    arrow-up
    27
    ·
    edit-2
    3 months ago
    play_stupid_games {
        // ...
    } win_stupid_prizes(thePrize) {
        // ...
    }
    
    • Bizzle@lemmy.world
      link
      fedilink
      English
      arrow-up
      16
      ·
      3 months ago

      I always thought it was “prizes”

      • Amanduh@lemm.ee
        link
        fedilink
        arrow-up
        6
        ·
        3 months ago

        It is.

        • kabi@lemm.ee
          link
          fedilink
          arrow-up
          7
          arrow-down
          1
          ·
          edit-2
          1 month ago

          deleted by creator

      • darkdemize@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        Have you seen eggs lately, though?

      • mogoh@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        Thx and sorry. My spelling skills are bad.

    • BeardedGingerWonder@feddit.uk
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      FAFO block passes better

  • Destide@feddit.uk
    link
    fedilink
    English
    arrow-up
    23
    ·
    edit-2
    3 months ago

    Just needs a rap about the fun in functions performed by 60-year-old seniors

  • brokenlcd@feddit.it
    link
    fedilink
    arrow-up
    23
    arrow-down
    1
    ·
    3 months ago

    slowly steps back and returns to basic and z80 assembly

    • magic_lobster_party@fedia.io
      link
      fedilink
      arrow-up
      24
      ·
      3 months ago

      *Gen Z assembly

      • The Ramen Dutchman@ttrpg.network
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        *z18 assembly

  • Psaldorn@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    3 months ago

    ratios I need this and I’m an elder millenial

    • introvertcatto@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      4
      arrow-down
      3
      ·
      3 months ago

      Ratio is when your comment receives less upvotes than my reply, you get ratioed.

      • Psaldorn@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        3 months ago

        I know! (Jumpin’ Jehosaphat!, I’m no boomer!) 🤭

  • AeonFelis@lemmy.world
    link
    fedilink
    arrow-up
    20
    arrow-down
    3
    ·
    3 months ago

    Ah, yes. A private method for working on a public field.

    • Kazumara@discuss.tchncs.de
      link
      fedilink
      arrow-up
      5
      ·
      3 months ago

      Ah but maybe the vibe is a lowkey period we can’t be sure

  • JokeDeity@lemm.ee
    link
    fedilink
    arrow-up
    15
    ·
    3 months ago

    It’s so painfully good.

  • sheepishly@fedia.io
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    3 months ago

    i hate it so fucking much

    • Psythik@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      edit-2
      3 months ago

      I fucking love it. Gen Z slang is so lighthearted and fun.

      • UnfortunateShort@lemmy.world
        link
        fedilink
        arrow-up
        4
        arrow-down
        2
        ·
        3 months ago

        It’s because we are depressed nihilists who have given up on pretty much everything, running on gallows homour to a point where we are meming youth slang. Don’t worry, we’re fine haha… Ha…

  • RVGamer06@sh.itjust.works
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    edit-2
    3 months ago

    Conflating us again with iPad kids?

    • SubArcticTundra@lemmy.ml
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      3 months ago

      Just wait till they get Lemmy on their iPads

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 743 users / day
  • 4.64K users / week
  • 9.23K users / month
  • 17.8K users / 6 months
  • 9 local subscribers
  • 23.1K subscribers
  • 1.26K Posts
  • 40.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: unknown version
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org