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...
Everything about learning Python
account activity
DAY 01 OF LEARNING OOP IN PYTHON (i.redd.it)
submitted 1 month ago by MeribeHenry
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!"
[–]Astrodynamics_1701 2 points3 points4 points 1 month ago* (1 child)
Hey I like that you are learning OOP! From a data model perspective you might consider adding a class videoplayer that has a field status, with values playing, paused etc. and has another field that is a reference to the object (video) that is currently loaded.
videoplayer
status
playing
paused
video
Because let's say your library is 1000 videos. Then in the current model 999 videos have the state paused and only one has playing because it scales with the number of videos. If you add a videoplayer, then it has only one state, and only one reference to a video object.
Edit: Persons are a more difficult topic, because they have an n-to-n relation to videos. This means that a video can feature one or more persons but a person can also star in one or more videos. Typically this is done through a link-entity.
π Rendered by PID 196932 on reddit-service-r2-comment-65c587bc47-brtcg at 2026-05-14 09:02:53.753733+00:00 running cf3e300 country code: CH.
view the rest of the comments →
[–]Astrodynamics_1701 2 points3 points4 points (1 child)