Disney Land Simulation Part 1
- Mike Corona-Gonzalez

- Feb 25, 2024
- 2 min read
This week I will be going over Python code created by Kristopher Moye who is a friend and colleague at California State University San Bernardino. Kristopher was able to simulate a Disney Land database with Python that simulates a theme park of patrons and actions by patrons, stores the actions of the simulated patrons, and analyzes the actions and trends of the simulated theme park. Like I said I did NOT help code this simulation. I want to use this blog post to explain Kristopher's ideas, explain lines of code in my own words and my point of view.
Here is the full Link to Kristopher Moya's Disney Land Database Simulation on GitHub: https://github.com/Moye0602/Python_Progamming/tree/primary/Database_DisneyLand
Firstly, I'd like to share my thoughts on the project that Kristopher has developed. I found it to be an amazing piece of work, and while it might initially appear daunting to beginners, Kris employs a technique in Python known as "classes." Classes are a core concept in Python, defined with the "class" keyword, followed by the class name and a colon. This approach is noteworthy because when I first encountered the code, it spanned over 600 lines, which could be quite intimidating for those with less experience. Nonetheless, through the use of classes, Kristopher can organize and invoke functions as required.
By collapsing all the classes, the code's volume reduces significantly, making it more accessible for someone to understand it on a line-by-line basis. Please note with classes, Kristopher can call out any function he wants at any line of code because Python reads all there code line by line. Having classes makes the code more flexible. I'm not claiming to understand every line of code on Kristopher's project, but I am in the process of learning about each one during my time with the Cyber Organization at California State University San Bernardino. I can confidently say that Kris's incorporation of classes into his project has made it far less daunting for me and I can’t wait to learn more in the future.
Keep an eye out for future posts as I go further into Kristopher's project.





Comments