Lemmy.ca
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
🅿🅸🆇🅴🅻@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

Holy variable!

lemmy.world

message-square
9
link
fedilink
56

Holy variable!

lemmy.world

🅿🅸🆇🅴🅻@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
9
link
fedilink
alert-triangle
You must log in or # to comment.
  • RagingNerdoholic
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    2 years ago

    CONSTANTS: oh yes daddy, don’t stop

  • Scrappy@feddit.nl
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    Google scoped variables

    • SwellowTheSun@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      holy hell

  • preciouspupp@sopuli.xyz
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    Let’s call it “singleton”, then it’s ok.

  • hadesflames@vlemmy.net
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    2 years ago

    Funny, take an upvote

    But honestly, I have not used global variable in over a decade. It’s completely unnecessary

    • EN20@feddit.de
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      It’s more difficult when you work with a huge legacy code base that is full of them and you have to do days of work in oder to rewrite and test everything rather then just use one.

      • azimir@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Once the code has given into the temptation, every generation must bear the cost of those sins.

        Yeah, I hear you on being handed the legacy base where someone in days of yore gave into the global temptation. Trying to refactor that kind of thing can take forever and it’s often very brittle.

  • Crackhappy@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    Goddamnit, that made me laugh entirely too hard.

  • darcy@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    image source ? uhh for a friend

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 291 users / day
  • 1.12K users / week
  • 3.12K users / month
  • 9.7K users / 6 months
  • 661 local subscribers
  • 36.9K subscribers
  • 1.87K Posts
  • 38.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org