Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected] • 3 months ago

Senior Wisdom

lemmy.ml

message-square
64
fedilink
  • cross-posted to:
  • [email protected]
804

Senior Wisdom

lemmy.ml

@[email protected] to Programmer [email protected] • 3 months ago
message-square
64
fedilink
  • cross-posted to:
  • [email protected]
  • @[email protected]
    link
    fedilink
    16•3 months ago

    Comment your code. Problem solved.

    • @[email protected]
      link
      fedilink
      12•3 months ago

      And decent variable names if you can, as well.

      No magic numbers!

      • @[email protected]
        link
        fedilink
        6•3 months ago

        WYM, I can’t just name my functions foo() and my variables single letters? /s

        • @[email protected]
          link
          fedilink
          6•3 months ago

          $retVal and $item are my personal favourite.

    • @[email protected]
      link
      fedilink
      7•3 months ago

      Make sure to remember to update your comments too, otherwise it causes even more confusion when something works differently than it says it does.

      • @[email protected]
        link
        fedilink
        3•3 months ago

        That happened to me multiple times…

Programmer [email protected]

[email protected]
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: [email protected]

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
  • 1 user / day
  • 218 users / week
  • 1.51K users / month
  • 4.3K users / 6 months
  • 3 subscribers
  • 1.55K Posts
  • 55.1K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org