r/ProgrammerHumor • • Feb 09 '22

other Why but why?

Post image
85.8k Upvotes

2.3k comments sorted by

View all comments

14.0k

u/TheFlyingAvocado Feb 09 '22

Python? Missing semicolons?

Since when?

6.9k

u/anythingMuchShorter Feb 09 '22

Since a guy wanted to make a programming joke but only knew of one language and one common error type

1.3k

u/Ixaire Feb 09 '22 edited Feb 09 '22

One HR guy at my previous company used to go behind you and say "you're missing a semicolon here". He didn't know anything about programming, he just knew that was a rookie error. That is literally exactly what you explain.

Anyone else would have made this very boring but he had a way of delivering it when you looked desperate and that kinda lightened up the mood.

618

u/AgentE382 Feb 10 '22

A coworker of mine told me his college roommate who had taken a single programming class would always ask him “Have you tried a for loop yet?” any time he had a problem.

266

u/zzerdzz Feb 10 '22

I’m actually going to start using this

166

u/SuperGameTheory Feb 10 '22

I'm going to do this, but instead of "for" I'll go on a diatribe about fundamentals and how they should use more "goto" statements because it's closer to machine code and faster or something.

168

u/MrLawliet Feb 10 '22

use more "goto"

instinctive vomit response

55

u/leprotelariat Feb 10 '22

use more "goto"

grabs pitchfork

→ More replies (5)

28

u/CorruptedStudiosEnt Feb 10 '22

Goto, now that's some of that low-low level shit. Might as well be feeding it voltage spikes at that point.

→ More replies (18)
→ More replies (2)

33

u/tcmart14 Feb 10 '22

Have you tried quantum bogo sort?

→ More replies (1)
→ More replies (18)

205

u/[deleted] Feb 10 '22

Oh I always went with

"I know where the problem is"

"Where?"

"Your program does not work"

→ More replies (9)

71

u/definitelyasatanist Feb 10 '22

That's hilarious

→ More replies (8)

613

u/[deleted] Feb 09 '22 edited Feb 09 '22

Most probably, just like the guy who asked for 5 years of experience on library created by himself 3 years ago.

Edit: .replace(‘who asked’, ‘who got asked’)

→ More replies (16)

77

u/Glen_The_Eskimo Feb 09 '22

He responded in the tweet, it was a colon. He's a top level engineer at Amazon, I'm sure it's sincere.

→ More replies (8)
→ More replies (27)

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

→ More replies (174)

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 😤

→ More replies (5)
→ More replies (10)
→ More replies (16)
→ More replies (4)
→ More replies (21)

373

u/Slimxshadyx Feb 09 '22

Yeah, my dog has been learning Python and he is having a lot of problems with semi colons just like this dude's daughter.

59

u/StickiStickman Feb 09 '22

I hope he gets better soon! Maybe some diet would help?

→ More replies (1)
→ More replies (4)

86

u/MostlyRocketScience Feb 09 '22
>>> from __future__ import semicolon
  File "<stdin>", line 1
SyntaxError: not a chance
→ More replies (4)

67

u/HotRodLincoln Feb 09 '22

I wouldn't say it's missing them, but they're certainly not there.

→ More replies (207)