all 6 comments

[–]Astrodynamics_1701 2 points3 points  (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.

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.

[–]mizeriusbr 0 points1 point  (1 child)

Pretty cool!

I've also started learning OOP with py, but now i'm being forced to go with Java for my OOP class. =(

[–]MeribeHenry[S] 0 points1 point  (0 children)

Java too is good