This is a great one. I'm definitely using it in class this fall to explain static variables.
this post was submitted on 21 Jun 2023
5 points (100.0% liked)
Programmer Humor
36984 readers
312 users here now
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.
founded 5 years ago
MODERATORS
Fun fact: I made this meme to explain my classmates static variables.
Young man, could.you explain your shitpost?
int variable => local scope => my int from the perspective of an instance
static int variable => class scope => our int, for all instances of a class
You know what's funny? In PHP it's backwards :D
well of course it is!