DEV Community

Cover image for Recipe Book (Hash Map Practice)
Corey
Corey

Posted on

Recipe Book (Hash Map Practice)

Hello again!

This is my second self Python project. My focus was implementing a hash map in my program. The categories are not very large so I am sure an array would have been fine, but I wanted to use a data structure to gain experience in it.

My program allows you to make/edit/remove various recipe categories, add/edit/remove recipes, in addition to searching all recipes according to a specific ingredient or tag. Users can also add/edit/remove specific ingredients, steps, tags, or change the category that the recipe is associated with. I originally planned on allowing each recipe to be linked to multiple categories, but that created issues with editing or removing them. If this was for an actual program, I am sure I would have kept this feature, but decided to remove it for this practice project.

I have been trying to write my code on paper before typing it to help organize my thoughts and prevent needing to edit large amounts of code. Most of the script portion was written during a camping trip with my family. It is much more relaxing than staring at a computer the whole time.

As always, I would love for you to give my project a look and let me know both what looks good and what can be improved upon.

https://github.com/TheHamhams/recipie-book

Happy coding!

Top comments (0)