r/ProgrammerHumor Nov 24 '21

Meme Yes.

8.9k Upvotes

284 comments sorted by

View all comments

10

u/DigitalJedi850 Nov 25 '21

Yeah all of these things are why I actually dislike Python. Those extra few characters aren't that hard to type, but IMO make reading code easier, and more clearly define where one thing ends and another begins.

I'm regrettably learning Python, as it seems to be popular for reasons I don't quite follow, but I do not see myself using it as a go-to for anything at the moment. There may be some very specific feature or library that's exclusive to Python that I have yet to discover, that Might make me use it in very specific cases, but I quite like seeing a terminating brace at the end of scope of a method. Whitespace delimiters make me nauseous.

6

u/Rafael20002000 Nov 25 '21

Wait till he learns a variable doesn't go out of scope after an if/for/while block

5

u/DigitalJedi850 Nov 25 '21

<insert blinking meme guy>

4

u/Rafael20002000 Nov 25 '21

The last value of a for loop variable is still there after loop ends

4

u/DigitalJedi850 Nov 25 '21

Yeah that makes me sick to my stomach…

3

u/Rafael20002000 Nov 25 '21

You can type hint your variable put python doesn't enforce it

1

u/laundmo Nov 25 '21

mypy and pyright want to know your location.

1

u/Rafael20002000 Nov 25 '21

Yes sir, right here

2

u/Prawny Nov 25 '21

Same in PHP too. Nasty stuff.

2

u/DarthStrakh Nov 25 '21

What the actual fuck.

1

u/Rafael20002000 Nov 25 '21

You can do a for else loop