Skip to content
DevMeme
2900 of 7435
Globals Are Offensive: Programmers Treat Scope Like A Tactical Shooter
CodeQuality Post #3205, on Jun 9, 2021 in TG

Globals Are Offensive: Programmers Treat Scope Like A Tactical Shooter

Description

The meme has a white background with two lines of plain black text at the top: "Noone:" on the first line and "Programmers:" on the second. Beneath this, the classic Counter-Strike game banner is shown, featuring the white silhouette of a soldier aiming a rifle next to the bold wordmark "COUNTER STRIKE" on a dark, grungy backdrop. The game’s usual subtitle "GLOBAL OFFENSIVE" is humorously altered to read "GLOBALS are OFFENSIVE," pluralizing "Global" to reference global variables in code. The visual gag equates programmers’ disdain for uncontrolled global state with the high-stakes combat of the FPS franchise, poking fun at how seasoned engineers treat unscoped variables as a hostile threat to maintainability and modular design

Comments

48
Anonymous ★ Top Pick Using a global variable is basically flash-banging the entire codebase - everyone’s blind, but hey, the build still passed
  1. Anonymous ★ Top Pick

    Using a global variable is basically flash-banging the entire codebase - everyone’s blind, but hey, the build still passed

  2. Anonymous

    The only globals more dangerous than the ones in your codebase are the ones rushing B site with P90s - at least those can be refactored with a flashbang and proper defensive positioning

  3. Anonymous

    The beautiful irony here is that while programmers universally condemn global variables as offensive to clean code architecture, they'll happily grind for Global Elite rank in CS:GO. It's the perfect encapsulation of developer priorities: we'll spend hours debating variable scope in code reviews, then immediately context-switch to a 5-hour competitive gaming session where 'globals' are actually the ultimate achievement. The real technical debt? Our sleep schedules and the 'just one more match' recursion that never hits a base case

  4. Anonymous

    CS:GO proves globals aren't just a code smell - they're globally offensive by design

  5. Anonymous

    Globals are offensive - one convenience var becomes a service locator with init-order roulette, hidden coupling, flaky tests, and a 3am SRE retake

  6. Anonymous

    Counter‑Strike: Globals Are Offensive - shared mutable state means your teammates can wallbang your invariants from anywhere

  7. @povapepe 5y

    Ясно

    1. Deleted Account 5y

      Понятно

    2. @intbyte20 5y

      only english please

      1. @povapepe 5y

        I already understood

  8. @povapepe 5y

    Темно

    1. @RiedleroD 5y

      Please only speak English in this chat. warning 1/3 for @Miroflexx

      1. @povapepe 5y

        Why?

        1. @RiedleroD 5y

          because this is an international chat, and we like to understand each other :)

          1. @povapepe 5y

            hmm, there is a google translator, but okay

            1. @sylfn 5y

              using English is easier than using translator

              1. @povapepe 5y

                you want to tell me to learn english)

                1. @RiedleroD 5y

                  if you don't know it yet, yes.

                2. @Dobreposhka 5y

                  english is an international language people in different countries use to communicate. If you don't speak it, that's not a problem of other people

                3. Deleted Account 5y

                  while you read english memes

      2. @sc0rsch 5y

        a Schmoarn

        1. @RiedleroD 5y

          owa kona vom keisa. Red englisch, hawara. translation: (talk english please)

          1. @sc0rsch 5y

            Sorry, this is english only chat. Warning 1/3

            1. @sylfn 5y

              this is not how it supposed to work

            2. @RiedleroD 5y

              you can talk any language so long as you add a translation of it XD

              1. @lirys 5y

                cheater

                1. @RiedleroD 5y

                  ich find das fair translation: I think that's fair

                  1. @lirys 5y

                    Тоді який взагалі сенс вводити правило розмовної англійської? What's the point of making English required then?

                    1. @RiedleroD 5y

                      So that everyone can understand all conversations.

                      1. @lirys 5y

                        I mean, what's the point of using another language here with an optional translation being provided? My point of view: wanna discuss something in other lang - go dm

                        1. @RiedleroD 5y

                          yes, but some people still want to do it - for a variety of reasons I'm not really understanding too well.

                          1. @lirys 5y

                            Not ur problem) Kick them off

                            1. @RiedleroD 5y

                              only if they actually violate the rules four times. I did kick some people for it, but not very many.

                              1. @lirys 5y

                                Of course, but u got the idea

      3. @pavloalpha 5y

        Siege Heil

        1. @RiedleroD 5y

          *Sieg Heil No matter how much of a nazi you are, I'll always be the bigger grammar nazi.

          1. @pavloalpha 5y

            jk)

            1. @RiedleroD 5y

              I mean, ofc

  9. @jor_ban 5y

    Uzbek soums

    1. @azizhakberdiev 5y

      Lemme say that these bill cost of about $5. This guy actually has more money than it seems

  10. @sc0rsch 5y

    lmao

  11. @cringy_frog 5y

    globals: 😡 singletons: 😍

  12. @pavloalpha 5y

    Yep

  13. @callofvoid0 5y

    sticker pack of learning russian?

    1. Deleted Account 5y

      Hahah) sure)

  14. @nepalymiynik 5y

    Не юзайте глобальные переменные

    1. @sylfn 5y

      Don't use Russian (without a translation) here. Translation: Dont use globals You are from comments section, that's why you are first told the rules, and only then you will get warnings. Rules: - no advertising - no spam - only english (you can add a translation to foreign text if needed, these rules as an example. Untranslatable jokes should be marked as such) - be nice (not mandatory) You'll be warned 3 times before getting banned, and if any questions arise, you can ask me here or message me directly. Правила на русском языке: - не рекламировать - не спамить - Только английский (можешь добавить перевод текста, если нужно, как в правилах, или отмктить непереводимость шутки) - быть вежливым (необязательно) Тебя предупредят 3 раза, перед тем как забанят, а если возникнут вопросы, можешь спросить меня тут или в ЛС.

  15. @nepalymiynik 5y

    Its like 'n' word

Use J and K for navigation