kuuhana
  • Communities
  • Multi-communities
  • Support Lemmy
  • Search
  • Login
  • Sign Up
Programmer Humor@programming.devbyChris@feddit.uk
2 years

Unexplained Phenomena

s3.us-east-005.backblazeb2.com English

Source: https://musicians.today/@barnetboy/113475747574177779

Mastodon: @barnetboy@musicians.today

25
    You must log in or register to comment.

    • tourist@lemmy.world
      2 years

      arbitrary npm package:

      • last updated 4 years ago
      • sole developer legit dead and buried
      • 47 dependencies
      • 608 critical vulnerabilities
      • condemned by the United Nations

      Still has 7 million weekly downloads

        • MadMadBunny@lemmy.ca
          2 years

          Please mark this as NSFL.

          Seriously, who the fuck starts a conversation like this, I just sat down!!

        • GarlicToast@programming.dev
          2 years

          // This line does nothing, however removing it causes production to crash. DO NOT REMOVE

            • Troy@lemmy.ca
              2 years

              I love hitting these things in the real world. Not the big, but the comment. You just know someone spent a fortune in time and company resources to never solve the problem and their frustration level was ragequit. But then something stupid like adding

              while (0){};

              Suddenly made it work and they were like, fuckit.

              Usually it’s a bug somewhere in a compiler trying to over optimize or something and putting the line in there caused the optimization not to happen or something. Black magic.

              The downside is that the compiler bug probably gets fixed, and then decades later the comment and line are still there…

                • nogooduser@lemmy.worldEnglish
                  2 years

                  I used to work on an old DOS product and we didn’t have a debugger so we used to have a DEBUG command line argument with

                  if (DEBUG) printf(“debugging”);
                  

                  to try to see what was happening and the number of times that code alone fixed the problem was scary.

                    • psycho_driver@lemmy.world
                      2 years

                      I mean . . . I still do this on my own stuff. If I’m interested in optimizing for speed I’ll do it as #ifdef instead of if ()

                    • Nat (she/they)@lemmy.blahaj.zone
                      2 years

                      And then the compiler updates to get better at spotting optimization opportunities and it blows up again

                      • GarlicToast@programming.dev
                        2 years

                        The real world case I remember also included a TODO to return and fix the code later. In a published scientific software. I wonder how many paper were messed up by this buggy software. As I looked at the code due to the amount of bugs I encountered.

                        It’s been many years from publication, and to the surprise of no one, they did not return to fix it.

                      • SmokeyDope@lemmy.worldEnglish
                        2 years

                        The digital manifestation of the ghost in the machine. It likes playing with the bits that line occupies when you aren’t looking. Don’t touch its line.

                      • Gork@lemm.ee
                        2 years

                        Mmm yes. Unexplained issues that have a single mention in StackOverflow five years ago, have a single reply by the author just saying “nvm I figured it out” and doesn’t explain the resolution.

                          • Troy@lemmy.ca
                            2 years

                            https://xkcd.com/979/

                              • frezik@midwest.social
                                2 years

                                I’ve found that that comic alone has reduced the instances of this sort of thing happening. Not completely, of course, but when people figure it out, they seem much more likely to post the solution. Randall may have single-handedly improved the Internet a few points with that one comic.

                              • Buddahriffic@lemmy.world
                                2 years

                                Or marked as duplicate and closed but when you click the duplicate it’s a different issue.

                                  • dubyakay@lemmy.ca
                                    2 years

                                    And there’s a comment after closure, also from a decade ago, mentioning that this should not have been closed as a duplicate.

                                • henfredemars@infosec.pubEnglish
                                  2 years

                                  Like the horror of this code is wrong but the program works.

                                    • marcos@lemmy.world
                                      2 years

                                      Doesn’t work anymore. It stops working as soon as you notice the code has always been wrong.

                                        • henfredemars@infosec.pubEnglish
                                          2 years

                                          Universe: whoops let me fix that.

                                          • psycho_driver@lemmy.world
                                            2 years

                                            Schrodinger’s Bug

                                          • mindbleach@sh.itjust.works
                                            2 years

                                            I have too many comments reading “… how did this ever work?”

                                          • psycho_driver@lemmy.world
                                            2 years

                                            Ahh, the C pointer debugging section.

                                            • AllHailTheSheep@sh.itjust.works
                                              2 years

                                              an entire section on race conditions I see

                                              • frezik@midwest.social
                                                2 years

                                                There are perfectly good reasons to sacrifice a goat to your USB drivers. Don’t let Reddit Atheists tell you otherwise.

                                                • mindbleach@sh.itjust.works
                                                  2 years

                                                  “Oh come on, why the fuck, there’s no possible reason this code should-- wrong variable.”

                                                  • JoYo@lemmy.mlEnglish
                                                    2 years

                                                    Undefined Phenomena

                                                    fify

                                                    oooo cake 🎂

                                                    • sheepishly@fedia.io
                                                      2 years

                                                      home

                                                      Programmer Humor@programming.dev

                                                      programmer_humor@programming.dev

                                                      Subscribe from remote instance

                                                      Create post

                                                      Report community

                                                      Modlog
                                                      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

                                                      This community is visible to everyone.

                                                      • 285 users / Day
                                                      • 262 users / Week
                                                      • 276 users / Month
                                                      • 14.5K users / 6 months
                                                      • 2.33K posts
                                                      • 89.9K comments
                                                      • 2 local subscribers
                                                      • 31.9K subscribers
                                                      • UI: 1.0.0-beta.0
                                                      • BE: 1.0.0-alpha.20
                                                      • Modlog
                                                      • Instances
                                                      • Docs
                                                      • Code
                                                      • join-lemmy.org