SDF Chatter
  • 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 · 2 years ago

Bill is a pro grammer

sh.itjust.works

message-square
98
fedilink
716

Bill is a pro grammer

sh.itjust.works

Cows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 2 years ago
message-square
98
fedilink
  • magic_lobster_party@kbin.social
    link
    fedilink
    arrow-up
    79
    ·
    2 years ago

    x += 1; // Increases x by one

    • towerful@programming.dev
      link
      fedilink
      arrow-up
      66
      arrow-down
      3
      ·
      edit-2
      2 years 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
        ·
        2 years 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
          ·
          2 years ago

          Found the bug. Thank goodness for comments.

          • Anders429@programming.dev
            link
            fedilink
            arrow-up
            3
            ·
            2 years ago

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

      • Anders429@programming.dev
        link
        fedilink
        arrow-up
        11
        ·
        2 years 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
          ·
          2 years ago

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

      • mryessir
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Please elaborate on the “1” more clearly. Other occurences specify the number base in their comments.

    • autokludge@programming.dev
      link
      fedilink
      English
      arrow-up
      20
      ·
      edit-2
      2 years 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
      ·
      2 years 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
        ·
        2 years ago

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

      • Jakylla@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years 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.

  • 2.1K users / day
  • 5.29K users / week
  • 9.55K users / month
  • 18.6K users / 6 months
  • 317 local subscribers
  • 23.7K subscribers
  • 1.46K Posts
  • 54.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org