Feddit.dk
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Cows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 1 year ago

Bill is a pro grammer

sh.itjust.works

message-square
97
link
fedilink
705

Bill is a pro grammer

sh.itjust.works

Cows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 1 year ago
message-square
97
link
fedilink
  • magic_lobster_party@kbin.social
    link
    fedilink
    arrow-up
    75
    ·
    1 year ago

    x += 1; // Increases x by one

    • towerful@programming.dev
      link
      fedilink
      arrow-up
      63
      arrow-down
      3
      ·
      edit-2
      1 year ago

      // increase the dynamically allocated memory space of a word sized integer stored at the memory address represented by the symbol "x" by the integer 1 and terminate the instruction

      • morrowind@lemmy.ml
        link
        fedilink
        arrow-up
        38
        ·
        1 year ago

        Wait why is it dynamically allocated and why are you increasing the memory. Something is very wrong here

        • floofloof@lemmy.ca
          link
          fedilink
          English
          arrow-up
          34
          ·
          1 year ago

          Found the bug. Thank goodness for comments.

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

            Oh, is this what they meant by “commenting your code”?

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

        Why the heck does it need to be dynamically allocated? Just put that puppy on the stack.

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

          That’s what it used to do.
          But it was a bug, and the code has been fixed.

    • autokludge@programming.dev
      link
      fedilink
      English
      arrow-up
      19
      ·
      edit-2
      1 year ago

      …Years later
      x += config.increment; // Increases x by one

      """
      config.yaml
      increment: -2
      """
      
    • ZILtoid1991@kbin.social
      link
      fedilink
      arrow-up
      16
      arrow-down
      1
      ·
      1 year ago

      x++; // Move X position forward by one

      There, I made that kind of comment more useful!

      • LostXOR@kbin.social
        link
        fedilink
        arrow-up
        9
        ·
        1 year ago

        x++; // Set x to the incrementation of the value of x
        Much better.

      • Jakylla@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        // Move to the right

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.

  • 681 users / day
  • 4.59K users / week
  • 9.12K users / month
  • 17.6K users / 6 months
  • 46 local subscribers
  • 23.1K subscribers
  • 1.39K Posts
  • 50.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org