this post was submitted on 21 Jun 2023
52 points (98.1% liked)

Programmer Humor

32548 readers
487 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago (1 children)

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

[–] [email protected] 2 points 1 year ago (1 children)

You know what's funny? In PHP it's backwards :D

[–] [email protected] 2 points 1 year ago

well of course it is!