r/programminghorror • • 29d ago

Python I love Python

303 Upvotes

81 comments sorted by

View all comments

Show parent comment

5

u/nakurtag 29d ago

Who you name "everyone"? Python developers? I'm not python developer, I'm from C#/Go/Rust world and this behavior is ridiculous for me. This is highly counterintuitive and illogical.

3

u/squabzilla 29d ago

My main language is Python, and still think it’s ridiculous how much unintuitive behaviour there is because Python’s array-equivalents, by default, copy the object-pointer instead of the object itself.

And then people tell you why it works like that, confusing an explanation for an excuse.

-1

u/CaptainFoyle 29d ago

I mean how do you learn a new language? Does it just pop into your head? Or do you look up documentation and syntax? Then that's usually one of the first things you read

4

u/nakurtag 29d ago

Eventually, I consulted the documentation when I encountered this behavior. But initially, I tried to write the code based on my experience as a programmer and by using deduction.