Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Infallible Code

Infallible Code

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
52 Posts 40 Posters 3 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • cm0002@lemmy.worldC [email protected]
    This post did not contain any content.
    xxce2aab@feddit.dkX This user is from outside of this forum
    xxce2aab@feddit.dkX This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #3

    Pah, mathematicians and their generally applicable pure approach to solutions and fancy modulus operations, who needs 'em? Computing is applied and we always work with well-defined finite precision. Granted, writing the boilerplate for all possible 64 bit integers is a bit laborious, but we're programmers! That's what code generation is for.

    J B 2 Replies Last reply
    4
    • cm0002@lemmy.worldC [email protected]
      This post did not contain any content.
      grilledcheese@lemmy.blahaj.zoneG This user is from outside of this forum
      grilledcheese@lemmy.blahaj.zoneG This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #4

      This isn’t his actual code, right? Like this specific code pictured here? I’m aware of the “drama” surrounding him currently.

      hornedmeatbeast@lemmy.worldH lime@feddit.nuL 2 Replies Last reply
      15
      • cm0002@lemmy.worldC [email protected]
        This post did not contain any content.
        K This user is from outside of this forum
        K This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #5

        Better/fastest approch would be to check the last bit of the int and return the result.
        Second use modulo.

        This? Dev should burn in hell.
        Who created this?

        C cows_are_underrated@feddit.orgC T 3 Replies Last reply
        4
        • grilledcheese@lemmy.blahaj.zoneG [email protected]

          This isn’t his actual code, right? Like this specific code pictured here? I’m aware of the “drama” surrounding him currently.

          hornedmeatbeast@lemmy.worldH This user is from outside of this forum
          hornedmeatbeast@lemmy.worldH This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #6

          Nah.

          Someone added him to an existing meme.

          But, if this was his code he would defend it and condescendingly tell you that he is correct, you are not knowledgeable enough to understand and let you know he worked at Blizzard for seven years.

          mossyfeathers@pawb.socialM I 2 Replies Last reply
          43
          • cm0002@lemmy.worldC [email protected]
            This post did not contain any content.
            W This user is from outside of this forum
            W This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #7

            Definitely a vibe.

            V 1 Reply Last reply
            4
            • cm0002@lemmy.worldC [email protected]
              This post did not contain any content.
              ronsijm@programming.devR This user is from outside of this forum
              ronsijm@programming.devR This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #8

              You don't get it. This was made in GameMaker Studio 1.4, which doesn't support a modulo operator. You know nothing about this specific framework. I have 8 years of experience and hacked governments. There's no reason to update it now, because it runs on a smart fridge at maximum capacity.

              M 1 Reply Last reply
              40
              • hornedmeatbeast@lemmy.worldH [email protected]

                Nah.

                Someone added him to an existing meme.

                But, if this was his code he would defend it and condescendingly tell you that he is correct, you are not knowledgeable enough to understand and let you know he worked at Blizzard for seven years.

                mossyfeathers@pawb.socialM This user is from outside of this forum
                mossyfeathers@pawb.socialM This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #9

                Did you know that he worked for Blizzard for seven years? Not only that, but he was Blizzard's first second-generation employee. He grew up in Blizzard. An extreme accomplishment to be certain. Thank you based and blizzpilled Pirate Software.

                I wonder if he was the one stealing the breast milk. After all, I've heard he can be really childish.

                S 1 Reply Last reply
                16
                • hornedmeatbeast@lemmy.worldH [email protected]

                  Nah.

                  Someone added him to an existing meme.

                  But, if this was his code he would defend it and condescendingly tell you that he is correct, you are not knowledgeable enough to understand and let you know he worked at Blizzard for seven years.

                  I This user is from outside of this forum
                  I This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #10

                  Second gen blizzard employee

                  1 Reply Last reply
                  4
                  • K [email protected]

                    You could save about half the code by only listing one boolean value and having the other as a default return at the bottom.

                    Sometimes my genius is almost frightening.

                    lefrog@discuss.tchncs.deL This user is from outside of this forum
                    lefrog@discuss.tchncs.deL This user is from outside of this forum
                    [email protected]
                    wrote on last edited by [email protected]
                    #11

                    This noob even forgot zero

                    P 1 Reply Last reply
                    12
                    • K [email protected]

                      Better/fastest approch would be to check the last bit of the int and return the result.
                      Second use modulo.

                      This? Dev should burn in hell.
                      Who created this?

                      C This user is from outside of this forum
                      C This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #12

                      Yandere Simulator Dev. Spaghetti code throughout

                      1 Reply Last reply
                      2
                      • cm0002@lemmy.worldC [email protected]
                        This post did not contain any content.
                        strixuralensis@tarte.nuage-libre.frS This user is from outside of this forum
                        strixuralensis@tarte.nuage-libre.frS This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #13

                        Try coding chess next time

                        See ya in a few years

                        1 Reply Last reply
                        2
                        • ronsijm@programming.devR [email protected]

                          You don't get it. This was made in GameMaker Studio 1.4, which doesn't support a modulo operator. You know nothing about this specific framework. I have 8 years of experience and hacked governments. There's no reason to update it now, because it runs on a smart fridge at maximum capacity.

                          M This user is from outside of this forum
                          M This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #14

                          I worked at Blizzard. I worked at Blizzard. I worked at Blizzard.

                          L 1 Reply Last reply
                          26
                          • cm0002@lemmy.worldC [email protected]
                            This post did not contain any content.
                            D This user is from outside of this forum
                            D This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #15

                            The fact that this probably doesn't even optimize to a lookup table just gives me pain.

                            1 Reply Last reply
                            5
                            • K [email protected]

                              Better/fastest approch would be to check the last bit of the int and return the result.
                              Second use modulo.

                              This? Dev should burn in hell.
                              Who created this?

                              cows_are_underrated@feddit.orgC This user is from outside of this forum
                              cows_are_underrated@feddit.orgC This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #16

                              Alternatively you can divide by 2, turn it into an int, mtiply it by 2 and check if both numbers are the same.

                              1 Reply Last reply
                              8
                              • cm0002@lemmy.worldC [email protected]
                                This post did not contain any content.
                                M This user is from outside of this forum
                                M This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #17

                                At least this madness is isolated to this function. It can easily be fixed.

                                Pirate’s code is just cluttered with magic numbers everywhere. Hard coded numbers that are referring to a big ”story array”, or characters. It’s just a giant web of complexity. The only fix is to start from scratch.

                                L 1 Reply Last reply
                                11
                                • cm0002@lemmy.worldC [email protected]
                                  This post did not contain any content.
                                  themoonisacheese@sh.itjust.worksT This user is from outside of this forum
                                  themoonisacheese@sh.itjust.worksT This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #18

                                  Obligatory: https://codegolf.stackexchange.com/q/275739/88192

                                  L 1 Reply Last reply
                                  3
                                  • grilledcheese@lemmy.blahaj.zoneG [email protected]

                                    This isn’t his actual code, right? Like this specific code pictured here? I’m aware of the “drama” surrounding him currently.

                                    lime@feddit.nuL This user is from outside of this forum
                                    lime@feddit.nuL This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #19

                                    this is an old meme about yanderedev

                                    1 Reply Last reply
                                    9
                                    • cm0002@lemmy.worldC [email protected]
                                      This post did not contain any content.
                                      S This user is from outside of this forum
                                      S This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by [email protected]
                                      #20

                                      After working at blizzard for 51 years, I finally found an elegant solution by using the power of recursion

                                      private bool IsEven(int number){
                                        if (number > 1) return IsEven(number - 2);
                                        if (number == 0) return true;
                                        if (number == 1) return false;
                                      }
                                      
                                      E E 2 Replies Last reply
                                      75
                                      • K [email protected]

                                        Better/fastest approch would be to check the last bit of the int and return the result.
                                        Second use modulo.

                                        This? Dev should burn in hell.
                                        Who created this?

                                        T This user is from outside of this forum
                                        T This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by [email protected]
                                        #21

                                        or another stupid, but viable way to do it,

                                        if number = 0:

                                        return true

                                        runloop = true

                                        while runloop:

                                        if number > 0:

                                        number -= 2

                                        else:

                                        number += 2

                                        if number = 1:

                                        return false

                                        runloop = false

                                        if number = 2:

                                        return true

                                        runloop = false

                                        still very shitty amature coding, doesn't depend on modulos, or anything that I can think of that some languages might lack an equivelant of.

                                        1 Reply Last reply
                                        2
                                        • S [email protected]

                                          After working at blizzard for 51 years, I finally found an elegant solution by using the power of recursion

                                          private bool IsEven(int number){
                                            if (number > 1) return IsEven(number - 2);
                                            if (number == 0) return true;
                                            if (number == 1) return false;
                                          }
                                          
                                          E This user is from outside of this forum
                                          E This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #22
                                          assert IsEven(-2);
                                          
                                          lambda@programming.devL 1 Reply Last reply
                                          37
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups