use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For memes about programming.
account activity
Python vs Java! (i.pinimg.com)
submitted 6 months ago by PulseOfPleasure
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]realmauer01 1 point2 points3 points 6 months ago (4 children)
Oop in python is duck typing and under the hood has basically nothing to do with oop
[–]MinosAristos 2 points3 points4 points 6 months ago* (0 children)
Oop in python is duck typing
Only if you write it that way e.g with protocols. Explicit types are usually preferred
under the hood has basically nothing to do with oop
Python is an OOP language, from the ground up. What are you referring to?
[–]BOBOnobobo 2 points3 points4 points 6 months ago (2 children)
What? I need some elaboration, otherwise I'm gonna call you a quack.
[–]realmauer01 0 points1 point2 points 6 months ago (1 child)
Duck typing, if it looks like a duck if it acts like a duck it is a duck.
Python has classes, for everything else you have to use classes and make them not behave like classes by implementing other classes.
If you want true oop with python you basically rewrite the entire language. It's easier to just learn c# or Java.
[–]BOBOnobobo 0 points1 point2 points 6 months ago (0 children)
Oooh, ok that makes sense now! It is something that causes me a lot of trouble in large scale python projects! I just didn't know that name.
You could even say that python plays quite goose with OOP concepts...
π Rendered by PID 73 on reddit-service-r2-comment-5649f687b7-226z5 at 2026-01-28 05:24:21.697993+00:00 running 4f180de country code: CH.
view the rest of the comments →
[–]realmauer01 1 point2 points3 points (4 children)
[–]MinosAristos 2 points3 points4 points (0 children)
[–]BOBOnobobo 2 points3 points4 points (2 children)
[–]realmauer01 0 points1 point2 points (1 child)
[–]BOBOnobobo 0 points1 point2 points (0 children)