Discuss Online
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 年前

fuck_around/find_out

sh.itjust.works

message-square
104
link
fedilink
943

fuck_around/find_out

sh.itjust.works

Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 年前
message-square
104
link
fedilink
alert-triangle
You must log in or # to comment.
  • Dyskolos@lemmy.zip
    link
    fedilink
    arrow-up
    174
    ·
    edit-2
    11 天前

    deleted by creator

    • noughtnaut@lemmy.world
      link
      fedilink
      arrow-up
      55
      ·
      1 年前

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

      • enumerator4829@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        30
        ·
        1 年前
        #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
        ·
        edit-2
        11 天前

        deleted by creator

    • jballs@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      35
      ·
      1 年前

      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
        ·
        1 年前

        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
        ·
        1 年前

        the suspense!

      • Dyskolos@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        11 天前

        deleted by creator

    • merc@sh.itjust.works
      link
      fedilink
      arrow-up
      13
      ·
      1 年前

      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.

      • underreacting@literature.cafe
        link
        fedilink
        arrow-up
        2
        ·
        1 年前

        I visualized “try” as watching a young child climb something that might be out of their comfort zone, so you’re letting them, but stay ready to “catch” them if something goes wrong. I suppose “throw” would be if they soiled themselves in their fall, you can throw them back into the arms of their loving parent for cleaning.

        But fuck_around, find_out and yeet would be fantastic.

    • Hadriscus@lemm.ee
      link
      fedilink
      arrow-up
      8
      ·
      1 年前

      just what you want from code !

      • Dyskolos@lemmy.zip
        link
        fedilink
        arrow-up
        3
        ·
        1 年前

        deleted by creator

  • 9point6@lemmy.world
    link
    fedilink
    arrow-up
    99
    ·
    1 年前

    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
      116
      arrow-down
      1
      ·
      1 年前
      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
        14
        arrow-down
        1
        ·
        1 年前

        Kids today just don’t know real code

        • moody@lemmings.world
          link
          fedilink
          arrow-up
          7
          arrow-down
          1
          ·
          1 年前

          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
          ·
          1 年前

          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
      21
      ·
      1 年前

      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 年前

        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 年前

        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
    89
    ·
    1 年前

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

    • BeardedGingerWonder@feddit.uk
      link
      fedilink
      English
      arrow-up
      24
      ·
      1 年前

      Of all the gen z lingo yeet is the best.

      • Ropianos@feddit.org
        link
        fedilink
        arrow-up
        9
        ·
        1 年前

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

    • Jezza@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 年前

      Funnily enough, that is a keyword in rust.

      (it’s a placeholder to remove any bikeshedding)

    • ratel@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      1 年前

      Pretty sure this is from the esolang bussin

  • ScruffyDucky@lemmy.world
    link
    fedilink
    arrow-up
    43
    ·
    1 年前

    For programmers who need action (cross-generational):

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

    image

    • pigup@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      1 年前

      😂

  • Scrubbles@poptalk.scrubbles.tech
    link
    fedilink
    English
    arrow-up
    35
    ·
    edit-2
    1 年前

    Ugh. Just

    its_giving rizz ratios vibe;

    No more needless nesting plz

    • TwilightKiddy@programming.dev
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      1 年前

      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
        ·
        1 年前

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

        • TwilightKiddy@programming.dev
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 年前

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

    • rumba@lemmy.zip
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 年前

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

      • da_cow (she/her)@feddit.org
        link
        fedilink
        arrow-up
        4
        ·
        1 年前

        Its literally bash

        • rumba@lemmy.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 年前

          I’m speaking from a descriptive naming concept.

  • peoplebeproblems@midwest.social
    link
    fedilink
    English
    arrow-up
    30
    ·
    1 年前

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

    • jaybone@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 年前

      I’m not so sure. Send a link.

      • peoplebeproblems@midwest.social
        link
        fedilink
        English
        arrow-up
        12
        ·
        1 年前

        Haven’t published it yet.

        Here are comparisons:

        ⚖️

        🐲

        🐲⚖️

        ⚖️🐲

        🚫🐲⚖️

        • jaybone@lemmy.world
          link
          fedilink
          arrow-up
          10
          ·
          1 年前

          Post the GitHub repo.

          I will help you make this happen.

          • peoplebeproblems@midwest.social
            link
            fedilink
            English
            arrow-up
            7
            ·
            edit-2
            1 年前

            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
              ·
              1 年前

              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
                ·
                1 年前

                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

  • mogoh@lemmy.ml
    link
    fedilink
    arrow-up
    27
    ·
    edit-2
    1 年前
    play_stupid_games {
        // ...
    } win_stupid_prizes(thePrize) {
        // ...
    }
    
    • Bizzle@lemmy.world
      link
      fedilink
      English
      arrow-up
      15
      ·
      1 年前

      I always thought it was “prizes”

      • Amanduh@lemm.ee
        link
        fedilink
        arrow-up
        6
        ·
        1 年前

        It is.

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

          deleted by creator

      • mogoh@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        1 年前

        Thx and sorry. My spelling skills are bad.

      • darkdemize@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        1 年前

        Have you seen eggs lately, though?

    • BeardedGingerWonder@feddit.uk
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 年前

      FAFO block passes better

  • Quacksalber@sh.itjust.works
    link
    fedilink
    arrow-up
    27
    arrow-down
    1
    ·
    1 年前

    I’d take that yeet instead of return…

    • nialv7@lemmy.world
      link
      fedilink
      arrow-up
      22
      ·
      1 年前

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

      • wise_pancake@lemmy.cadeleted by creator
        link
        fedilink
        arrow-up
        16
        ·
        1 年前

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

  • Destide@feddit.uk
    link
    fedilink
    English
    arrow-up
    23
    ·
    1 年前

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

  • brokenlcd@feddit.it
    link
    fedilink
    arrow-up
    22
    arrow-down
    1
    ·
    1 年前

    slowly steps back and returns to basic and z80 assembly

    • magic_lobster_party@fedia.io
      link
      fedilink
      arrow-up
      24
      ·
      1 年前

      *Gen Z assembly

      • The Ramen Dutchman@ttrpg.network
        link
        fedilink
        arrow-up
        1
        ·
        1 年前

        *z18 assembly

  • Psaldorn@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    1 年前

    ratios I need this and I’m an elder millenial

    • introvertcatto@lemmy.blahaj.zoneBanned
      link
      fedilink
      arrow-up
      4
      arrow-down
      3
      ·
      1 年前

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

      • Psaldorn@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 年前

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

  • AeonFelis@lemmy.world
    link
    fedilink
    arrow-up
    20
    arrow-down
    3
    ·
    1 年前

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

    • Kazumara@discuss.tchncs.de
      link
      fedilink
      arrow-up
      5
      ·
      1 年前

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

  • JokeDeity@lemm.ee
    link
    fedilink
    arrow-up
    15
    ·
    1 年前

    It’s so painfully good.

  • RVGamer06@sh.itjust.works
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    1 年前

    Conflating us again with iPad kids?

    • SubArcticTundra@lemmy.ml
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      1 年前

      Just wait till they get Lemmy on their iPads

  • straightjorkin@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    1 年前

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

    • throwback3090@lemmy.nz
      link
      fedilink
      English
      arrow-up
      9
      ·
      1 年前

      Every generation is peddled two insane concepts:

      When they are young, they are told that they have a weird bizarre vernacular which sounds stupid to everyone else.

      Then when they are old, they are told young people have a weird bizarre vernacular which sounds stupid to everyone else.

      Then you die.

    • Lemminary@lemmy.world
      link
      fedilink
      arrow-up
      3
      arrow-down
      2
      ·
      1 年前

      Yes, and? Get off my lawn!

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.

  • 2.36K users / day
  • 3.99K users / week
  • 8.25K users / month
  • 18.1K users / 6 months
  • 98 local subscribers
  • 31.2K subscribers
  • 2.29K Posts
  • 89.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.18
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org