Python 3

a person playing a game with a video gamea person playing a game with a video game

Pygame is great to practice OOP and create 2D games with a high-level of customization. There is another more streamlined library called Arcade. I tried it and found out that it can help create cleaner, more maintainable, and scalable 2D games:

  • Elegant use of OOP:

    • Better separation of concerns and cleaner extensibility

    • Scene abstraction for better layer structure, scalability, and less verbosity

  • Resource Aliasing: Better deliverability, platform indep.

  • Other game design oriented improvements

Logo of Datascience-jy.comLogo of Datascience-jy.com
a small spacecraft flying over meteorites a small spacecraft flying over meteorites

In this one I am diving further into OOP Python and also code structure, showing how both skills on these concepts are very translatable to Data Analysis:

  • Encapsulation and Inheritance

  • Modular Imports and Path Handling

  • Event-Driven Programming

  • State Management and Loop

  • Github repo for the entire code and game install file to test it out

Logo of Datascience-jy.comLogo of Datascience-jy.com
A box combat involving OOP Python concepts with a Python as refereeA box combat involving OOP Python concepts with a Python as referee

Continuing on my Data specialist's journey, I am diving into Python to show what is Object Oriented Programming (OOP) and see a few ways to use it:

  • Encapsulation, Abstraction and Inheritance

  • Class objects, Children at 2 levels of inheritance

  • While loop & nested while loop as a function

  • All code in a Github repo via a notebook

Logo of Datascience-jy.comLogo of Datascience-jy.com