Civilloquy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 year ago

fuck_around/find_out

sh.itjust.works

message-square
73
fedilink
817

fuck_around/find_out

sh.itjust.works

Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 year ago
message-square
73
fedilink
alert-triangle
You must log in or register to comment.
  • Dyskolos@lemmy.zip
    link
    fedilink
    arrow-up
    158
    ·
    1 year 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
      48
      ·
      1 year ago

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

      • enumerator4829@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        26
        ·
        edit-2
        1 year 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
        ·
        1 year ago

        Oh yes, this one too of course!

    • jballs@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      32
      ·
      1 year 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
        6
        ·
        1 year ago

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

      • Dyskolos@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        1 year 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
      11
      ·
      1 year 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
      ·
      1 year ago

      just what you want from code !

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

        Exactly!

  • 9point6@lemmy.world
    link
    fedilink
    arrow-up
    86
    ·
    1 year 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
      99
      ·
      1 year 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
        12
        ·
        1 year ago

        Kids today just don’t know real code

        • moody@lemmings.world
          link
          fedilink
          arrow-up
          6
          ·
          1 year 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
          2
          ·
          edit-2
          1 year 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
      19
      ·
      1 year 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
        ·
        1 year ago

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

      • rbos@lemmy.ca
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year 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…

  • ScruffyDucky@lemmy.world
    link
    fedilink
    arrow-up
    35
    ·
    1 year ago

    For programmers who need action (cross-generational):

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

    image

    • pigup@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      😂

  • mogoh@lemmy.ml
    link
    fedilink
    arrow-up
    23
    ·
    edit-2
    1 year ago
    play_stupid_games {
        // ...
    } win_stupid_prizes(thePrize) {
        // ...
    }
    
    • Bizzle@lemmy.world
      link
      fedilink
      English
      arrow-up
      14
      ·
      1 year ago

      I always thought it was “prizes”

      • Amanduh@lemm.ee
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        It is.

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

          deleted by creator

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

        Have you seen eggs lately, though?

      • mogoh@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Thx and sorry. My spelling skills are bad.

    • BeardedGingerWonder@feddit.uk
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      FAFO block passes better

  • Destide@feddit.uk
    link
    fedilink
    English
    arrow-up
    20
    ·
    edit-2
    1 year ago

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

  • Quacksalber@sh.itjust.works
    link
    fedilink
    arrow-up
    19
    arrow-down
    1
    ·
    1 year ago

    I’d take that yeet instead of return…

    • nialv7@lemmy.world
      link
      fedilink
      arrow-up
      19
      ·
      1 year 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
        15
        ·
        1 year ago

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

  • AeonFelis@lemmy.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    2
    ·
    1 year ago

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

    • Kazumara@discuss.tchncs.de
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

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

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

    It’s so painfully good.

  • Psaldorn@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    ratios I need this and I’m an elder millenial

  • sheepishly@fedia.io
    link
    fedilink
    arrow-up
    13
    ·
    1 year ago

    i hate it so fucking much

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

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

      • UnfortunateShort@lemmy.world
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        1 year 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
    1 year ago

    Conflating us again with iPad kids?

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

      Just wait till they get Lemmy on their iPads

  • rumba@lemmy.zip
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year ago

    Aliasing no_cap and cap to true and false…

    I might have to steal that…

  • straightjorkin@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    Big “you damn kids and your phones” vibes from this

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

      Yes, and? Get off my lawn!

  • ulterno@programming.dev
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 year ago

    This was by far the best way to explain current slang.
    I got all of it No Tea

  • 𝒎𝒂𝒏𝒊𝒆𝒍@sopuli.xyz
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    1 year ago

    Shoutout.SpillTea🤣

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.

  • 605 users / day
  • 2.12K users / week
  • 6.31K users / month
  • 13.4K users / 6 months
  • 1 local subscriber
  • 29.7K subscribers
  • 1.8K Posts
  • 46.7K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org