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. At least it works

At least it works

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
24 Posts 20 Posters 2 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.
  • W [email protected]

    They probably thought that all their NPCs would be human when they started the game, so they named their NPC class Human. Then they decided to add dogs, but needed them to do a lot of the same things the human NPCs did, so they made the Dog class a subclass of Human.

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

    What is refactoring?

    1 Reply Last reply
    4
    • W [email protected]

      They probably thought that all their NPCs would be human when they started the game, so they named their NPC class Human. Then they decided to add dogs, but needed them to do a lot of the same things the human NPCs did, so they made the Dog class a subclass of Human.

      dandelion@lemmy.blahaj.zoneD This user is from outside of this forum
      dandelion@lemmy.blahaj.zoneD This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #16

      it's probably so much worse

      1 Reply Last reply
      4
      • D [email protected]
        This post did not contain any content.
        Z This user is from outside of this forum
        Z This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #17

        Why not let the dog walk under the barrier 🤔.

        whotookkarl@lemmy.worldW R 2 Replies Last reply
        5
        • J [email protected]

          Why would dog extend human?

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

          ND answer is because the dev made the Human class before abstracting everything into the Entity class, dog should extend a game entity and not inherit the human animation behavior.

          1 Reply Last reply
          3
          • Z [email protected]

            Why not let the dog walk under the barrier 🤔.

            whotookkarl@lemmy.worldW This user is from outside of this forum
            whotookkarl@lemmy.worldW This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #19

            Special animation just for dog?

            silent hill 2 dog ending

            1 Reply Last reply
            7
            • teft@lemmy.worldT [email protected]

              Is that Dogmeat or the Thing?

              whotookkarl@lemmy.worldW This user is from outside of this forum
              whotookkarl@lemmy.worldW This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #20

              T[errier]-1000

              teft@lemmy.worldT 1 Reply Last reply
              4
              • whotookkarl@lemmy.worldW [email protected]

                T[errier]-1000

                teft@lemmy.worldT This user is from outside of this forum
                teft@lemmy.worldT This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #21

                Same images:

                1 Reply Last reply
                10
                • Z [email protected]

                  Why not let the dog walk under the barrier 🤔.

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

                  What if the dog walks through a wall because of that? Thats a risk that cannot be taken

                  1 Reply Last reply
                  4
                  • W [email protected]

                    They probably thought that all their NPCs would be human when they started the game, so they named their NPC class Human. Then they decided to add dogs, but needed them to do a lot of the same things the human NPCs did, so they made the Dog class a subclass of Human.

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

                    Object oriented programming was a mistake

                    1 Reply Last reply
                    2
                    • J [email protected]

                      Why would dog extend human?

                      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
                      #24

                      IIRC, the screen recording is from a mod of a game. The original game didn't have dogs, just humans, and the modder decided to make the dog NPC from a human NPC and forgot to override that one animation.

                      1 Reply Last reply
                      3
                      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