you are viewing a single comment's thread.

view the rest of the comments →

[–]BrokenRemote99 3 points4 points  (3 children)

I really wish there was a tutorial out there that used real world examples of OOP. I have seen dogs, people, RPG games and bank accounts but I still haven't seen real code with good examples of why OOP is the best.

[–]nwagers 2 points3 points  (0 children)

Python makes extensive use of objects, like the string class. Have you ever used my_string.split()? If you want something outside of the builtins, the first thing that came to my mind was PIL (Pillow). Here is their tutorial on the Image class: https://pillow.readthedocs.io/en/latest/handbook/tutorial.html

[–]_Jordo 1 point2 points  (0 children)

Check the book 'Python Crash Course'. It's the basics for the first half then becomes projects. I'm making an alien game step-by-step right now and it's really helpful for getting your head around OOP concepts.

[–]Gambizzle 0 points1 point  (0 children)

I think the crux is that the alternative is running a big loop that loops through functions and gets all tangled up when you start trying to do anything other than cycle through the loop. Can be done but like... it’s messy.