toldi.eu Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
MaliciousKebab@sh.itjust.works to Programmer Humor@programming.devEnglish · 2 years ago

Writing C++ is easy.

sh.itjust.works

message-square
55
fedilink
838

Writing C++ is easy.

sh.itjust.works

MaliciousKebab@sh.itjust.works to Programmer Humor@programming.devEnglish · 2 years ago
message-square
55
fedilink
alert-triangle
You must log in or register to comment.
  • Saneless@lemmy.world
    link
    fedilink
    English
    arrow-up
    80
    ·
    edit-2
    2 years ago

    My favorite, since I’m not a programmer anymore, is excel

    E: Your formula has a circular reference. I ain’t doing shit till you fix it

    Me: where?

    E: In your spreadsheet, I don’t fucking know

    • Eheran@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      ·
      edit-2
      2 years ago

      Excel: taking ages to load a file

      Excel: There is a link to another Excel document, but I can’t access it to update the value.

      Me: Where?

      Excel: To this document.

      Me: … Where can I find the cell that contains this link?

      Excel: I don’t know noises

      Me: What if it is a named variable?

      Excel: Yes.

      • Saneless@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 years ago

        And don’t even try to do a conversion of text to numbers in a big column. There’s a super fast way (name is eluding me) but if you respond to the error popup I imagine it looks at each cell of text, thinks says, “abracadabra you’re now a number!” for every row. It takes that long

    • sunbeam60@lemmy.one
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      It’s ok, you run the expression debugger, which says the first step, which is all of the formula, will result in an error. So helpful.

  • cabbage@programming.dev
    link
    fedilink
    English
    arrow-up
    59
    arrow-down
    6
    ·
    2 years ago

    Sounds like Rust propaganda to me >:(

    • JakeHimself@programming.dev
      link
      fedilink
      English
      arrow-up
      37
      ·
      2 years ago

      Tbf, you have to be pretty far with Rust to get to a point where Rust’s compiler errors stop helping you (at least, as far as I’ve seen). After that, it’s pretty much the same

      • philm@programming.dev
        link
        fedilink
        English
        arrow-up
        22
        ·
        2 years ago

        Yep use a little bit more deeply cascaded generic rust code with a lot of fancy trait-bounds and error messages will explode and be similar as C++ (though to be fair they are still likely way more helpful than C++ template based error messages). Really hope that the compiler/error devs will improve in this area

      • Boinketh@lemm.ee
        link
        fedilink
        English
        arrow-up
        11
        ·
        edit-2
        2 years ago

        deleted by creator

        • JakeHimself@programming.dev
          link
          fedilink
          English
          arrow-up
          7
          ·
          2 years ago

          Would know, I’ve never had a runtime error in Rust /s

        • Beanie@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          ‘it should pretty much never segfault’ uh, isn’t that the entire point of Rust? Unless you’re counting failing a bounds check as a segfault

          • Boinketh@lemm.ee
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            2 years ago

            deleted by creator

  • FreeloadingSponger@lemmy.world
    link
    fedilink
    English
    arrow-up
    48
    arrow-down
    1
    ·
    edit-2
    2 years ago

    MySQL: you have an error near here.

    Me: What’s the error?

    MySQL: It’s near here.

    Me: You’re not going to tell me what the error is? Okay, near where? Here?

    MySQL: warmer… warmer…

    • marcos@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      ·
      2 years ago

      Oracle: You have this error in line 1

      User: Hey, no, there isn’t anything to cause this error in line 1

      Oracle: I’m telling you, it’s in line 1

      User: Hum… How many lines are in my 10 lines query?

      Oracle: 1

    • christophski@feddit.uk
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 years ago

      MySQL: you have an error around here

      Me: that’s the entire query. If you aren’t going to tell me what the error is, can you at least narrow it down?

      MySQL: … Stfu

  • ihavenopeopleskills@kbin.social
    link
    fedilink
    arrow-up
    40
    arrow-down
    1
    ·
    2 years ago

    C just shrugs and says “Seg Fault.”

    • Aceticon@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      2 years ago

      “Shit happenned!”

    • frostwhitewolf@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Probably forgot a semicolon

      • Hexarei@programming.dev
        link
        fedilink
        arrow-up
        12
        ·
        2 years ago

        This joke is never funny; Forgetting a semicolon in c results in compile time errors, not runtime errors

    • ImpossibleRubiksCube@programming.dev
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      edit-2
      2 years ago

      deleted by creator

    • ExperimentalGuy@programming.dev
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      2 years ago

      The range those words induce is crazy

  • snor10@lemm.ee
    link
    fedilink
    English
    arrow-up
    17
    ·
    2 years ago

    Yeah, but which one i cooler?

    • corm@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      1
      ·
      2 years ago

      Rust because having a package manager is important.

      Even C has a package manager

    • Streetdog@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 years ago

      Bebop, he would just submit his code to the Shredder.

      • snor10@lemm.ee
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 years ago

        Shredder = /dev/null confirmed?

    • philm@programming.dev
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      2
      ·
      2 years ago

      Well at least C++ definitely is far away from cool, you can imagine the rest…

      • snor10@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        But he has a purple mohawk!

        • ImpossibleRubiksCube@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          2 years ago

          deleted by creator

  • pastermil@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    1
    ·
    2 years ago

    Clearly, you haven’t gcc & gdb…

  • Speiser0@feddit.de
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    2 years ago

    I like how this depicts how rust is designed more top down and C++ is designed bottom up.

    How compiler builders see peppa:

    https://www.deviantart.com/ian-exe/art/Peppa-pig-front-face-743773121

    I think these two pigs are the best comparison of rust and c++ I’ve ever seen. Also considering the aesthetics, it’s so accurate.

    • TheCee@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      How compiler builders see peppa:

      even number of nostrils

      Missed opportunity.

  • UFO@programming.dev
    link
    fedilink
    English
    arrow-up
    10
    ·
    2 years ago

    Way too short to be a real C++ error. Needs a few more pages of template gibberish.

    • mormegil@programming.dev
      link
      fedilink
      English
      arrow-up
      8
      ·
      edit-2
      2 years ago

      Syntax error: unmatched thing in thing from std::nonstd::__map<_Cyrillic, _$$$dollars>const basic_string< epic_mystery,mongoose_traits<char>, __default_alloc_<casual_Fridays = maybe>>

      (from James Mickens’ The Night Watch, highly recommended with his other essays: https://mickens.seas.harvard.edu/wisdom-james-mickens)

    • sunbeam60@lemmy.one
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Template>, Outer>>>::static_wrapper, spirit::parser::lever>::fuck_you

  • bad_alloc@feddit.de
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 years ago

    LISP be like: “There is an error here in this wierd code I just generated and which you never saw before. Wanna hotfix it and try again?”

  • manpacket@lemmyrs.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 years ago

    Then there’s Haskell that would remove (well, used to at some point) your source code file if you made any errors: https://gitlab.haskell.org/ghc/ghc/-/issues/163

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 years ago

      The world’s angriest compiler.

  • TheQuantumPhysicist@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    2 years ago

    Ever tried using typenum numerals in Rust? 😅

    Try it and see the errors with something like typenum::U500.

    • philm@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 years ago

      Or deeply cascaded generic code with a lot of trait-bounds…

  • miridius@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 years ago

    Clojure: hold my beer

  • dreadedsemi@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 years ago

    Segmentation fault. :

    • Chadus_Maximus@lemm.ee
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 years ago

      Core obliterated.

      • ImpossibleRubiksCube@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        2 years ago

        deleted by creator

  • Aceticon@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 years ago

    “Fuck you … or not. One day … or two … or every day. For certain, when you least expect it”

    (C++ errors involving memory pointers)

  • ExperimentalGuy@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    2 years ago

    One of the reasons i started learning rust was bc of how easy it is to get into it, or at least that’s how it felt for me. It wasn’t until a few months into consistently writing that I started to encounter things that I didn’t understand.

    • marcos@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 years ago

      The good thing about Rust is that if you have no idea of any problem in your code, it very likely because your code is ok.

      On C++ things are different.

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: [email protected]

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.

  • 1.13K users / day
  • 3.36K users / week
  • 8.24K users / month
  • 15.8K users / 6 months
  • 1 local subscriber
  • 24.8K subscribers
  • 1.43K Posts
  • 47.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.10
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org