DEV Community


Meeting Requirements

jillklatt profile image JillKlatt ・1 min read

Our very first project required quite a few different aspects. I was confident as I looked over the checklist, but the execution proved my confidence superlative.
We've learned so much in the past few weeks, and I assumed this project was a culmination of all of that, which in some ways it is, but in others (like using object orientation over procedural), it definitely was not.
On day three my code looked like this:

cocktail_name = response_hash["drinks"][0]["strDrink"]
cocktail_instruc = response_hash["drinks"][0]["strInstructions"]
main_ingredient = response_hash["drinks"][0]["strIngredient1"]
Enter fullscreen mode Exit fullscreen mode

Notice anything suspect? I was reaching into my API, pulling out information, turning it into an object in a new class, but then when it came time to display that info, I just scooped it out without using the object at all!

At this point I had felt like my project was basically complete, so to learn I wasn't actually meeting the requirements I was crushed. As my cohort lead pointed out, it honestly was an easy fix, but the feeling still crushed me.

Discussion (0)

Forem Open with the Forem app