"Savoring Success: Developing a Restaurant Ingredient Tracking System"
- Roshae Sinclair

- Apr 23, 2023
- 2 min read
Building a Restaurant Ingredient Tracking System with Python. A month ago, I was approached by a friend who needed assistance with her restaurant. She was hosting an event and needed a way to track ingredients, including restocking and availability. At the time, I was still in the process of learning object-oriented programming in Java, with Python being my preferred language for personal projects, albeit for simpler programs. However, I saw this as an opportunity to further my knowledge of object-oriented programming through hands-on coding.

To start, I used ChatGPT to help generate a list of tasks that the ingredient tracker would need to accomplish. Some of the tasks included restocking ingredients and checking their availability based on set thresholds. I also requested help from ChatGPT to learn the syntax of object-oriented programming in Python, which enabled me to begin building my project.

After creating the basic functions for the ingredient tracker, I realized there was room for improvement. I added a function that allows users to add ingredients to a file, which stores the names, stock quantity, and threshold of all ingredients. I also implemented a deletion method, ensuring that file handling was incorporated into the add, restock, and use functions.
As I continued to develop the program, I sought further input from ChatGPT for additional functionalities. One feature that was suggested and implemented was a log system, which proved to be highly useful. This log system records all actions taken within the ingredient tracker, along with the corresponding time and date.

Building this program has been an enjoyable learning experience, allowing me to build upon my existing knowledge of object-oriented programming and apply it to my preferred language, Python. However, I recognize that there is always more to learn in the ever-evolving field of programming. I am excited to continue expanding my skills and knowledge as I work on new projects in the future.


Comments