My Lemmy Instance
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Match!!@pawb.social to Programmer Humor@programming.devEnglish · 1 year ago

std::underflow_error

pawb.social

external-link
message-square
30
link
fedilink
582
external-link

std::underflow_error

pawb.social

Match!!@pawb.social to Programmer Humor@programming.devEnglish · 1 year ago
message-square
30
link
fedilink
alert-triangle
You must log in or register to comment.
  • halvar@lemm.ee
    link
    fedilink
    arrow-up
    92
    ·
    1 year ago

    Don’t get fooled, that’s called stockholm syndrome.

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

      I’ve met people with C++ Stockholm Syndrome, and I think their trajectory is different. There’s no asymptotic approach toward zero; their appreciation just grows or stays steady, even decades into their career.

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

        Const

    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Stockholm Syndrome + Sunk Cost Fallacy + some of the better languages have lackluster corporate backing and/or third party libraries

  • MajorHavoc@programming.dev
    link
    fedilink
    arrow-up
    33
    ·
    1 year ago

    This is quite accurate.

    Source: I’ve been in this journey.

  • parpol@programming.dev
    link
    fedilink
    arrow-up
    32
    arrow-down
    4
    ·
    1 year ago

    deleted by creator

  • sus@programming.dev
    link
    fedilink
    arrow-up
    20
    ·
    1 year ago

    your underflow error is someone’s underflow feature (hopefully with -fwrapv)

  • SmoothIsFast@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    1 year ago

    F(c++)=1/c++

  • 33550336@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    Is C++ actually that bad?

    • Vlyn@lemmy.zip
      link
      fedilink
      English
      arrow-up
      33
      ·
      1 year ago

      Well, there’s modern C++ and it looks reasonable, so you start to think: This isn’t so bad, I can work with that.

      Then you join a company and you find out: They do have modern C++ code, but also half a million lines of older code that’s not in the same style. So there’s 5 different ways to do things and just getting a simple string suddenly has you casting classes and calling functions you have no clue about. And there’s a ton of different ways to shoot your foot off without warning.

      After going to C# I haven’t looked back.

      • 5C5C5C@programming.dev
        link
        fedilink
        arrow-up
        16
        ·
        edit-2
        1 year ago

        And even if you do get to use pure modern C++ you’ll still get burned by subtle cases of undefined behavior (e.g. you probably haven’t memorized every iterator invalidation rule for every container type) that force you to spend weeks debugging an inexplicable crash that happened in production but can only be recreated in 1/10000 runs of your test suite, but vanishes entirely if you compile in debug mode and try to use gdb.

        And don’t even get me started on multi-threading and concurrency.

        • felbane@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          1 year ago

          “Test suite”?

          • 5C5C5C@programming.dev
            link
            fedilink
            arrow-up
            9
            ·
            1 year ago

            I’m not sure if you’re genuinely asking what a test suite is or if this is a sarcistic joke about how no one bothers to test their C++ code.

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

          This is why I moved over to Rust

          • 5C5C5C@programming.dev
            link
            fedilink
            arrow-up
            3
            ·
            1 year ago

            🦀🦀🦀🦀🦀🦀🦀🦀

            • SatouKazuma@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              Rustacean supremacy (not to be racist, because we avoid race conditions in the first place)

              • 5C5C5C@programming.dev
                link
                fedilink
                arrow-up
                2
                ·
                1 year ago

                Sorry to be pedantic but Rust only guarantees no data races can happen. It does not prevent race conditions more generally.

                Don’t get me wrong, I absolutely love the language for sparing me from the hell that is data races, but the language alone won’t solve race conditions for you.

                • SatouKazuma@programming.dev
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  1 year ago

                  Man, you had to go and rain on my parade. 😞

    • R00bot@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      13
      ·
      1 year ago

      No.

    • trxxruraxvr@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      Depends on your frame of reference.

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

      It’s C with feeping creaturism. Some of the features are good. Others not so much. Personally I agree with Torvalds overall.

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

      It’s a decent language I guess. My main criticism is that the constructor paradigm just isn’t well suited for RAII. I always find myself retrofitting Rust’s style of object creation into my C++ code.

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

        Yeah exactly what I experienced. You just end up rewriting Rust constructs!

  • Tolookah@discuss.tchncs.de
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    Needs a sinusoidal wave added to it all.

  • RickAstleyfounddead@lemy.lol
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Oh gawd I have to learn it for my grads

    • Match!!@pawb.socialOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      you should disagree

  • lambalicious@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    The fun thing is that, C++ being C++, this is actually an std::overflow_error…

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

    I have zero context this graph is confusing af but also says so much

    I just don’t know how to translate it lul

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

      When learning c++ you hate c++. Then suddenly you get it, and love c++. Then you learn more c++, and you end up merely liking c++

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

        And as your knowledge tends toward expertise your love of the language approaches zero

      • asteriskeverything@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Thank you!

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.

  • 1.71K users / day
  • 4.46K users / week
  • 8.01K users / month
  • 17.2K users / 6 months
  • 1 local subscriber
  • 23.5K subscribers
  • 1.43K Posts
  • 51K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org