lemmy.dexlit
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Gollum to Programmer Humor@programming.dev • 3 months ago

Another smart move

feddit.org

message-square
114
fedilink
966

Another smart move

feddit.org

Gollum to Programmer Humor@programming.dev • 3 months ago
message-square
114
fedilink
  • @driving_crooner@lemmy.eco.br
    link
    fedilink
    7•3 months ago

    Variable names should be var{n} where n = 0, 1, 2…

    • Rikudou_Sage
      link
      fedilink
      5•
      edit-2
      3 months ago

      Pff, just use the numbers directly:

      ${1} = "value";
      ${2} = "DOGE";
      

      That makes it possible to do stuff like:

      for (${152} = 1; ${152} <= 2; ${152}++) {
          ${666} = $${152};
          print(${666});
      }
      

      This is a valid code, btw.

    • @Zink@programming.dev
      link
      fedilink
      1•3 months ago

      Something something the cruelty is the point.

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
  • 2K users / day
  • 4.62K users / week
  • 8.22K users / month
  • 17.6K users / 6 months
  • 23.4K subscribers
  • 1.41K Posts
  • 49.6K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org