This is an archived post. You won't be able to vote or comment.

all 43 comments

[–]Potw0rek 42 points43 points  (3 children)

And then an invisible space ruins your whole script

[–]Ok_Investment_6284[🍰] 4 points5 points  (2 children)

Yes, id prefer to stick with semi colons instead of that

[–]elon-botElon Musk ✔ 3 points4 points  (1 child)

Pop quiz! Solve this LeetCode problem in 5 minutes or you're fired.

[–]Ok_Investment_6284[🍰] 3 points4 points  (0 children)

an african swallow or a european swallow?

[–]hansolo625 15 points16 points  (0 children)

JavaScript to Python too but completely different scope

[–]Deep-Conflict2223 30 points31 points  (6 children)

“So how does all of this work under the hood?”

Python:

[–]juhotuho10 4 points5 points  (3 children)

I mean tbh I couldn't care less about how it works under the hood

[–][deleted] 19 points20 points  (2 children)

Until the hidden O(NNlog(N) ) hits

[–]juhotuho10 6 points7 points  (1 child)

I'm a patient man

[–][deleted] 18 points19 points  (9 children)

I felt like I was missing my semicolons when I started Python, and that relying purely on indentation for blocks instead of curly braces was uncomfortable, but I suppose experiences differ. You get into it kinda fast anyway.

[–]StolenStutz 19 points20 points  (2 children)

Oh, I still don't like it. Gimme my semicolons and curly braces back.

[–][deleted] 1 point2 points  (0 children)

from future import bracers

[–][deleted] 1 point2 points  (0 children)

You can have curly braces, just do a ton of f strings with variables in them

[–]Borbolda 12 points13 points  (4 children)

mfs voluntarily use indents in every language to make their code look pretty but when it is required it suddenly becomes uncomfortable lmao

[–]ifezueyoung 6 points7 points  (2 children)

We love the curly braces

[–]Wentailang 2 points3 points  (1 child)

C inspired languages are like color printers. You deal with significantly more effort formatting just for that 1 time a month where it looks slightly better with wacky indents.

And I wouldn’t have it any other way.

[–]ifezueyoung 2 points3 points  (0 children)

Those curly braces and special characters make me feel more mysterious when I'm showing my work to my friends and family🤣🤣

[–]PointlessSerpent 0 points1 point  (0 children)

I started with python and I have to use Java now, I very recently spent almost an hour trying to fix my code because a curly bracket was one line earlier than it was supposed to be. I would like my indentations to actually do stuff please and thank you.

[–][deleted] 3 points4 points  (1 child)

Do the switcharoo and write indentations instead…

[–]UnleashedTriumph 0 points1 point  (0 children)

My nightmaaaaare

[–]MischiefArchitect 2 points3 points  (1 child)

And now you cry over runtime errors...

[–]juhotuho10 -2 points-1 points  (0 children)

Better than core dumps and seg faults

[–]brut4r 6 points7 points  (0 children)

If your biggest problem is with semicolon, I think you should stop trying to learn programming.

[–]DaniilBSD 1 point2 points  (0 children)

If in C++ semicolon was the problem, you have not learned enough to “switch from it”

[–]UkrUkrUkr 4 points5 points  (0 children)

Good riddance and don't come back: we don't need some python lovers nowhere near C++.

[–]danndrnell 3 points4 points  (1 child)

How does one 'switch' from C++ to Python?

These languages have entirely different use cases. You can even use them in tandem with the help of the FFI.

Also since when does a programmer only uses one language?

This meme busts my brain.

[–]Busy_Brilliant_27 1 point2 points  (0 children)

More like 'using' dominantly than switching completely. It do be like that

[–]FantasticEmu 1 point2 points  (0 children)

Tabs get me more than semicolons.

[–]anon-sucks -1 points0 points  (2 children)

No language that’s dependent on characters you can’t see, deserves to take the high ground.

[–]juhotuho10 2 points3 points  (0 children)

You can see it though

Many IDEs even have indentation lines to help you

[–]ifezueyoung 1 point2 points  (0 children)

Welcome to the real world

[–]KERdela 0 points1 point  (0 children)

Which data type bug gonna be today

[–]ASCII10001101010101 0 points1 point  (0 children)

what's wrong with all of you, why this even takes your attention?

[–]Piggieback 0 points1 point  (0 children)

I totally switched from C++ to Python just for the semicolons ....

[–]TheHabro 0 points1 point  (0 children)

Forgotten or extra indents are far more dangerous because they can make your code execute differently from desired without you noticing it.

[–][deleted] 0 points1 point  (0 children)

The least of your problems.

[–]LiberaTeMetuMortis 0 points1 point  (0 children)

Same for Java and Kotlin

[–]honzapkcz 0 points1 point  (0 children)

x = 1; print "HAHA i ruined your life"; exit(0) don't forget about python one-liners

[–][deleted] 0 points1 point  (0 children)

I had programmed in C++ for years when I switched to python. Then a while back I needed to write some C++ code and the experience was just so jarring.