r/Python • • 9d ago

Discussion PYTHON πŸ†š ALL ...

"If you want to learn programming, don’t start with Python; you should start with another language."

This advice seems ridiculous to me, even though I hear it everywhere. Can someone explain this advice to me... and are they right?

0 Upvotes

34 comments sorted by

View all comments

Show parent comments

-1

u/vivaaprimavera 9d ago

Worse ... The "damn bug" of

array_a = array_b

And when modifying array_b, array_a is also altered.

1

u/nekokattt 9d ago

thats the same in most languages when working with reference types

Java has the same issue when not using primitives or valhalla value classes...

-2

u/vivaaprimavera 9d ago

The same in most languages but in the context of "first language to learn"... It's a language that "looks so simple" that some people don't bother with "how things work under the hood" and that ends up bitting them in the ass.

3

u/UUDDLRLRBadAlchemy from __future__ import 4.0 9d ago

Yeah like the guy who called documented behavior a bug... Wait, that was you

0

u/vivaaprimavera 9d ago

Why I quoted the expression? I haven't called it a bug...