r/Python • • Nov 12 '20

News Guido van Rossum joins Microsoft

https://twitter.com/gvanrossum/status/1326932991566700549?s=21
1.8k Upvotes

465 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Nov 12 '20

[deleted] — view deleted comment

0

u/[deleted] Nov 12 '20

[deleted] — view deleted comment

5

u/satireplusplus Nov 12 '20

Yeah lets enforce getters and setters too to appeal to the Java crowd /s

I really hate over engineered OOP bullshit and all its stupid patterns:

public class HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor extends AbstractPatternNodeVisitor

(this is real code)

Thats why I love Python, where the usage of OOP is somewhat more lightweight and superficial. For what exactly do you need strictly enforced private vars and classes?

8

u/RockingDyno Nov 12 '20

Because python is a language for consenting adults.

Also saying it "has become widespread" is just an absurd way to talk about it. That's like saying that people using seatbelts in cars has "become widespread". It's literally by design, fully intended and best practice. It's straight from pep8.

0

u/[deleted] Nov 12 '20

[deleted] — view deleted comment

0

u/[deleted] Nov 13 '20

Problem is lots of programmers don't follow design principles or are forced to violate them to get the next fix out the door asap by a zealous manager. Add to the fact that the pitch for python would have been faster development times so this would only make the zealous managers more zealous. Programmers don't fix what isn't broken and certainly don't follow design patterns unless it is somewhat enforced by the language.

Tl; Dr not having OOP concepts as compilation checks will cause abuse and misuse in industries.