r/Python • • Nov 14 '17

Senior Python Programmers, what tricks do you want to impart to us young guns?

Like basic looping, performance improvement, etc.

1.3k Upvotes

629 comments sorted by

View all comments

Show parent comments

7

u/ICanAdmitIWasWrong Nov 14 '17

I can't imagine programming in Python without classes.

This alone should be a warning sign. Writing python without classes (or with minimal classes) is very easy and natural. Try it some time. A lot of things are much, much easier without an object dogma straitjacket.

13

u/TankorSmash Nov 14 '17

FWIW this isn't as helpful as you probably intended. Maybe you could provide some reasons why it's easy and natural. Sorta sounds like you're ragging him for not knowing already.

0

u/[deleted] Nov 14 '17

[deleted]

1

u/ICanAdmitIWasWrong Nov 14 '17

Sure, I can agree to this. But you said:

I can't imagine programming in Python without classes.

That's completely different.

0

u/[deleted] Nov 14 '17

[deleted]

1

u/ICanAdmitIWasWrong Nov 14 '17

I wasn't suggesting to do it dogmatically. I was suggesting that if you "can't imagine" not using classes, you should try it, because that is dogmatic.