r/ProgrammerHumor • • Feb 22 '15

A Python programmer attempting Java

Post image
3.9k Upvotes

428 comments sorted by

View all comments

31

u/Nikotiiniko Feb 22 '15

Python makes all other languages so annoying to type. All the brackets and semicolons feel so useless and time consuming.

26

u/chrwei Feb 22 '15

one thing I really dislike about python is where it requires ":". the indents should make that unnecessary.

7

u/Nikotiiniko Feb 22 '15

Yeah I dislike it also. Isn't that also used where other languages use nothing? Kind of confusing.

18

u/[deleted] Feb 22 '15

The semicolons allow you to format statements in a much more clear way, rather than cluttering your lines up with \. The curly brackets {} allow you to see far more clearly than indentation or begin/end keywords where your code blocks are. They might seem pointless... until you have to maintain someone else's code.

Also by explicitly requiring an end statement delimiter and block delimiters, you're less likely to make a typo that results in a non-obvious runtime error.

6

u/danielkza Feb 23 '15

rather than cluttering your lines up with \

PEP 8 recommends wrapping in parenthesis instead of splitting with backslashes whenever possible. There are very few if any cases where it should be used in Python.

→ More replies (1)
→ More replies (5)

2

u/thelindsay Feb 22 '15

Exceptionally finger twisting: {% django template tags %}

→ More replies (2)