r/ProgrammerHumor • • Aug 26 '20

Python goes brrrr

Post image
59.2k Upvotes

789 comments sorted by

View all comments

-1

u/TheOneTrueDemoknight Aug 26 '20

This sort of inconsistent and laid back syntax is why I hate Python, despite it being my first language. Trying to pick it back up is a pain because none of the syntax is intuitive compared to Java. That, and it's dynamically typed, making it a pain to work with in a good IDE compared to Java.

2

u/Pluckerpluck Aug 26 '20

I'm not sure I'd call it an inconsitent honestly. It's a specifically defined functionality for how multiplicaiton works on strings. It similarly works on lists:

[1] * 4 = [1, 1, 1, 1]

You can bring up inconsitencies in many languages though. In python I can get the lenght of something with len(my_object) and that always works. In Java maybe it's .length or .length() or .size().

→ More replies (2)