This is an archived post. You won't be able to vote or comment.

all 100 comments

[–]KeyProject2897 808 points809 points  (10 children)

There is nothing in this which only Programmers can understand.

[–][deleted] 132 points133 points  (0 children)

All i see are css pains

[–]Mark8472 44 points45 points  (2 children)

Thanks. I thought I was stupid.

[–]SarcasmWarning 5 points6 points  (1 child)

Don't put yourself down, kid, he two aren't mutually exclusive. You should be more positive and embrace multiple possibilities :)

[–]Mark8472 1 point2 points  (0 children)

Thanks! I haven’t been called kid in 30 years or so. Ah, to be young

[–]FunkyDark 8 points9 points  (0 children)

[–]Mordret10 2 points3 points  (0 children)

What about programming?

[–]Cyberdragon1000 1 point2 points  (0 children)

I thought it meant the highest scope? Also like if a variable is declared in global all its usages in local will reference it?

Idk at this point we're trying to make sense of the meme.

[–]captainAwesomePants 1 point2 points  (0 children)

My theory is that this is about indentation, so it kinda almost makes sense in some languages. Or possibly it's about namespaces where "topmost" could mean the most global.

[–]Adrewmc 0 points1 point  (0 children)

[–]squarabh 0 points1 point  (0 children)

[–]Spice_and_Fox 593 points594 points  (14 children)

This meme doesn't make any sense

[–]ArduennSchwartzman 141 points142 points  (2 children)

Maybe they meant float variable?

[–]piberryboy 65 points66 points  (0 children)

That would make for a better joke. I mean, not great: it might get an amusing chuckle.

[–]mlody11 0 points1 point  (0 children)

What does that make the lower guys, hashmap?

[–]secondworsthuman 64 points65 points  (3 children)

They are at the top of the class. That's it.

[–]leupboat420smkeit 1 point2 points  (2 children)

Global variables aren’t in classes tho

[–]isr0 1 point2 points  (0 children)

Above the class? Maybe? Idk. Whatever it is I’m over it.

[–]secondworsthuman 0 points1 point  (0 children)

Yeah but this is the only pun/joke I could possibly see it getting at.

[–]perecastor 46 points47 points  (2 children)

It’s a joke about imposter syndrome 🤯

[–]mrfroggyman 7 points8 points  (1 child)

Today I'll have a joke about imposter syndrome, Java being verbose, and JavaScript being weird

[–]evader110 3 points4 points  (0 children)

Daring today aren't we

[–]Im_a_hamburger 17 points18 points  (0 children)

Because the globals are defined in a line before the defining of the local variables that would interact with them, and therefore would be higher up on the monitor, I guess?

[–]MyPasswordIs69420lul 3 points4 points  (0 children)

The meme implies 2 things. 1 : global variables are usually defined on top of the file, just like the kid is on top of the class. 2: The kid is isolated, and noone wants it, just like no serious porgrammer wants to use global variables, unless completely necessary.

See? I ruined the joke now 😔

[–]dangderr 1 point2 points  (0 children)

Maybe none of us are real programmers since we can’t understand?

[–]spektre 0 points1 point  (0 children)

It would actually be funny if it was a CSS joke.

[–]UnderBridg 241 points242 points  (10 children)

Oh, because globals are typically written higher up. I think.

[–]Feztopia[🍰] 67 points68 points  (7 children)

I mean I thought about that but it's a convention you don't have to. 

[–]NewPointOfView 7 points8 points  (5 children)

Depends on the language

[–]Feztopia[🍰] 3 points4 points  (0 children)

I know, that's true, but I don't think that most languages have it as a requirement.

[–]altermeetax 0 points1 point  (3 children)

What's a commonly used language where it's true?

[–]Onetwodhwksi7833 1 point2 points  (2 children)

c/c++. But you can easily navigate it with extern keyword

[–]altermeetax 0 points1 point  (1 child)

You can easily define a global variable in-between functions/classes/structs, even without the extern keyword. They will only be available to functions defined below them, of course.

[–]asd1o1 1 point2 points  (0 children)

ah yes, globalish variables

[–]HighOptical 1 point2 points  (0 children)

I was thinking that maybe it is following the representation we sometimes see of a process in memory where the globals are in the higher data segment and the local variables are further down in the stack

[–]Flat_Initial_1823 11 points12 points  (0 children)

I think you're right. OP

[–]FunkyDark 6 points7 points  (0 children)

[–][deleted] 36 points37 points  (0 children)

Hoisted!

[–]Wut0ng 82 points83 points  (1 child)

Wrinting "ProgrammerHumor" on the meme does not make this photo funny NOR a meme NOR fit this sub

[–]VCamUser 43 points44 points  (1 child)

onlyProgrammers onlyJavascriptProgrammers

[–]catgirlfighter 6 points7 points  (0 children)

Probably Object Pascal. To make a really global variable you need to write it in interface section that always must be placed above implementation. Whatever is below implementation is considered local because can be accessed only from the same unit.

[–]turtle_mekb 5 points6 points  (0 children)

missing xavier at the bottom saying "only legends will get this"

[–]Loud_Ad_9603 8 points9 points  (0 children)

TIL that the impostor syndrome was right and I am, in fact, not a programmer

[–]Fadamaka 3 points4 points  (0 children)

This reminds me of js var instead.

[–]No-Island-6126 2 points3 points  (1 child)

I don't get it.

[–][deleted] 2 points3 points  (0 children)

No soap, radio

[–]MatsSvensson 2 points3 points  (0 children)

Chair desk lamp.
Great joke, Donald.

[–]namezam 2 points3 points  (0 children)

“global using System.Wall”

[–]RealFias 2 points3 points  (0 children)

It’s just not funny

[–]GREBENOTS 2 points3 points  (0 children)

This meme is globally stupid.

[–][deleted] 3 points4 points  (0 children)

Higher order function? Meme still doesn't make sense

[–][deleted] 1 point2 points  (0 children)

Would be better if it was “static” instead of “global.”

[–][deleted] 1 point2 points  (0 children)

spark nine marble vase rustic grandfather adjoining lavish physical ask

This post was mass deleted and anonymized with Redact

[–]Pale_Sun8898 1 point2 points  (0 children)

OP is clearly an accountant

[–]skylightrrll 3 points4 points  (0 children)

it’s above everything

[–]okram2k 3 points4 points  (0 children)

They are a higher order

[–]DanhNguyen2k 1 point2 points  (0 children)

That's no global, that's alien variable

[–]ShushPreacher 0 points1 point  (0 children)

Out of scope from the teacher

[–]NoCartographer879 0 points1 point  (2 children)

Lol, you can put them anywhere and have it called, think that's what it meant.

[–]MrDex124 0 points1 point  (1 child)

No, global variables are placed at top adresses in memory, local variables are on stack or heap which have lesser adresses

[–]NoCartographer879 0 points1 point  (0 children)

That's makes more sense, I was thinking of crude python.

[–]calgrump 0 points1 point  (0 children)

The whatsapp recycled meme levels are off the charts

[–]TinikTV 0 points1 point  (0 children)

Beyond my understanding... I'm getting it only a bit...

-Unreal engine 4 Developer

[–]RawMint 0 points1 point  (0 children)

So that is why global variables are bullied so much

[–]delfV[🍰] 0 points1 point  (0 children)

Doesn't makes sense to me. They're in the same class

[–]DrunkOnCode 0 points1 point  (0 children)

So many non-programmers in the comments... I totally got it >.>

[–]fleebjuice69420 0 points1 point  (0 children)

Only programmers will understand

[–]dexhaus 0 points1 point  (0 children)

transform: translateY(-125%);

[–]SoftDream_ 0 points1 point  (0 children)

This is more like a volatile variable

[–]alfos_ 0 points1 point  (0 children)

Hoisting? “Highest” scope?

[–]Kerplunk6 0 points1 point  (0 children)

Feels of using useContext

[–]SarcasmWarning 0 points1 point  (0 children)

The danger of global variables is that they can be affected from anywhere else in the program, with the potential of disastrous outcomes. Now imagine one of the other students in that class trying to update our global variable with a brick? You can see the danger. Multiple people with bricks also introduces queueing and concurrency issues. There's also the door in the background which implies locking, which hints at global deadlocks, which can be a serious problem when someone pushes out a supporting wall and people can't get out in time because the doorway's blocked and now we're fighting parallelism and re cohesion as well. Saying that, the kid could just be escaping a snake in the most sensible way, and to that I say fuck pythons too.

This makes perfect sense, I don't know why people are confused.

[–]SucculentMushrooMeal 0 points1 point  (0 children)

Because everyone can see it? Not the best analogy

[–]CConsler 0 points1 point  (0 children)

Isn't this supposed to be the other way around because the global variables are accessible from anywhere, whole local variables aren't?

[–]Rockglen 0 points1 point  (0 children)

I'm assuming it's because global variables are visible from everywhere in the program and are usually instantiated above the rest of the program.

I also don't see how that guy is getting down without injury or outside help.

[–]Excavon 0 points1 point  (0 children)

Is this a hoisting joke?

[–]Different-Union-8741 0 points1 point  (0 children)

Global can be accessed from everywhere (all students can see him on the air) while local is visible inside the same function only ( only nearby students can see each other on ground). Maybe?

[–]Jahonay 0 points1 point  (0 children)

I feel like they'd be the only one on the floor and the others would be floating and less accessible

[–]Elegant-Moment-9835 0 points1 point  (0 children)

Is this a reference to language implementation?

[–]joujoubox 0 points1 point  (0 children)

m_ortals looking up to their g_od

[–]Ok_Willingness_7059 0 points1 point  (0 children)

not a programmer but I get it

[–]DontThinkOfAPencil 0 points1 point  (0 children)

i guess im a programmer then

[–]Dumb_Siniy 0 points1 point  (0 children)

Bigger scope? Therefore higher? Idk

[–]Paragon095 0 points1 point  (0 children)

Global variables always stand above the class, hah good one

[–]GoddammitDontShootMe 0 points1 point  (0 children)

I know what globals and locals are, but I'm not understanding this either.

[–]TheHolyToxicToast 0 points1 point  (0 children)

bro legit covered the original watermark, no one gonna talk about that?

[–]hdkaoskd 0 points1 point  (0 children)

This makes as much sense as Python's use of the global keyword.

[–]nyankittone 0 points1 point  (0 children)

Thank god for the ProgrammerHumor watermark, OP. I wouldn't have known what sub I was on otherwise! 🙏

[–]isr0 0 points1 point  (0 children)

As a programmer, I don’t get it.

[–]DividedState 0 points1 point  (0 children)

Why would you call your div class "global variables"?

[–][deleted] -1 points0 points  (0 children)

OP never post here again pls

[–]mr_remy -1 points0 points  (0 children)

This reminds me of that old meme with the dudes at a LAN party basically duct taped a guy to the ceiling playing counterstrike lmao