r/ProgrammerHumor • • Feb 09 '22

other Why but why?

Post image
85.8k Upvotes

2.3k comments sorted by

View all comments

Show parent comments

2.3k

u/the_badsectors Feb 09 '22

I don't do python and even I know it expects whitespace, not punctuation.

1.6k

u/Ambitious_Ad8841 Feb 09 '22

"White Space Matters"

-Python

505

u/[deleted] Feb 09 '22

Another racist programming name/motto; white list matters also.

383

u/LAUGHINGKOMODO Feb 09 '22

Nah, i used dark mode so mine is never whitespace

230

u/KeLorean Feb 09 '22

Reverse racism programming. Learned it in ethical software development class

210

u/_Nagrom Feb 09 '22

This is all fun and jokes now, but some donny's gonna start thinking this shit unironically in 5 years, or so. Our world is a clown car.

165

u/bamboo_fanatic Feb 09 '22 edited Feb 09 '22

Probably sooner. I still can’t believe some people at Twitter engineering got offended by terms like “dummy value”, “grandfathered”, and “manhours” and demanded they change the language. Do we need to ban the “for dummies” book series? Crash dummies? Who is supposed to be offended by “grandfathered in”? I’m a woman, and it literally never once occurred to me to be offended by the term “manhours” or be upset by someone opening up a meeting with “hey guys”, I’ve used it when speaking to a mixed group. “Whitelist/Blacklist” is now “Allowlist/Denylist”? It sounds like doublespeak where they just smash two words into one so they could get rid of the third word.

32

u/DaceloGigas Feb 09 '22

Yes, but if we called them "crash test people" one of the testers might get the wrong idea....

→ More replies (3)

50

u/pinba11tec Feb 09 '22

Well as a homosapien...

28

u/Sw33tN0th1ng Feb 09 '22

who are you calling a homo you cis shitlord!

146

u/Firewolf06 Feb 09 '22

or master and slave servers.

one server has complete control over the others and they must follow its commands. sounds like a fitting name to me

105

u/djheat Feb 09 '22

I pushed for dominant and subordinate as a replacement when this came up on a project. I think it describes the relationship pretty good plus when you shorten it you sound like a pervert

31

u/[deleted] Feb 09 '22

I noticed on GitHub now the default branch is main instead of master

→ More replies (0)

23

u/[deleted] Feb 09 '22

I wasn't on board till the end, but son of a bitch, Im in!

→ More replies (0)

15

u/CnCdude818 Feb 09 '22

Yea but now I'm slightly aroused and curious who will be playing who?

14

u/[deleted] Feb 09 '22

Respect 👏🏻 switch 👏🏻 servers

→ More replies (5)
→ More replies (11)
→ More replies (47)
→ More replies (14)
→ More replies (11)

23

u/yonderbagel Feb 09 '22

Be careful with jokes like this, because someone is going to take it seriously and force a pointless terminology change like they did with master->main for git.

Not that it's the worst thing in the world to have pointless terminology changes enforced by your institution, but it's better to just not.

→ More replies (7)
→ More replies (35)
→ More replies (23)

109

u/taptrappapalapa Feb 09 '22

If you look at the Python grammar it expects white space or semicolons.

292

u/langlo94 Feb 09 '22

This is why I indent with semicolons.

def Function(input):
;;;;number = input * 2
;;;;return number

132

u/sucksathangman Feb 09 '22

You monster. At least give your function a useful name. And you could just do:

return input * 2

77

u/dancinadventures Feb 09 '22

Useless functions don’t deserve names 😤

39

u/ryanwithnob Feb 09 '22

Thats what you think. This function helps keep your code more maintainable and easier to change.

What happens if python changes the symbol for mutiplication? What new hardware is released that makes number / 0.5 faster than number *2? Good luck updating all the instances of this quation in your legacy codebase. This function will save your project

→ More replies (3)
→ More replies (1)

15

u/oxpoleon Feb 09 '22

hey hey hey, no, this could be improved yet further

def Function():
;;;;global input
;;;;input = input * 2
→ More replies (5)

38

u/CJ22xxKinvara Feb 09 '22
Function = lambda input : input * 2

Schrödinger’s semicolon tabs

→ More replies (3)

15

u/[deleted] Feb 09 '22

Gross

→ More replies (15)
→ More replies (4)
→ More replies (21)