Feddit.dk
  • 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
49

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.
  • Scrappy@feddit.nl
    link
    fedilink
    arrow-up
    5
    ·
    2 years ago

    Google scoped variables

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

      holy hell

  • hadesflames@vlemmy.net
    link
    fedilink
    arrow-up
    5
    ·
    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
      3
      ·
      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
        4
        ·
        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.

  • RagingNerdoholic@lemmy.ca
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    2 years ago

    CONSTANTS: oh yes daddy, don’t stop

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

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

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

    image source ? uhh for a friend

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

    Goddamnit, that made me laugh entirely too hard.

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: !programmerhumor@lemmy.ml

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.

  • 597 users / day
  • 925 users / week
  • 2.45K users / month
  • 7.8K users / 6 months
  • 75 local subscribers
  • 37.5K subscribers
  • 1.49K Posts
  • 34.4K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org