DEV Community

Metal Gabe
Metal Gabe

Posted on

Codecademy Project Portfolio

Codecademy Portfolio Project: Recommendation Software App

Source Code

Overview

This a terminal/CLI based app that takes in user input to select a food type that they're feeling. Then, based off of input, the app will provide restaurant "recommendations" from it's internal data.

Technology

This was written in Python 3.

It's a straightforward app in that it just takes in user input and then filters out pre-defined restaurant data that's stored in a local file.

Screenshots

https://github.com/gflujan/recommendation-software-app/blob/main/recommendations-01.png

https://github.com/gflujan/recommendation-software-app/blob/main/recommendations-02.png

Top comments (1)

Collapse
 
fractalis profile image
Scott Rallya

Fantastic job on this. There are no "straightforward apps", every app is a uniquely crafted piece of art that is the result of [hard] work, creativity, ingenuity, and application. Always take pride in the work you do, no matter how simple it might seem. Every piece of code you write leads you on the path of being a better developer.

So, I've been learning to use type annotations. While type annotations are optional in Python, they convey a lot of information. For example,


def  prompt_user(prompt: str) -> str
      name = input(prompt)
     return name.strip()
Enter fullscreen mode Exit fullscreen mode

Here we see a function that takes a prompt, which is of type string, and it returns a type string. This can be powerful in complex code bases and for type-checking and IDEs/intellisense. If you're looking for an additional challenge, I'd challenge you to convert your Codeacademy solution to use type annotations. That sounds like a fun challenge, now doesn't it?

Anyways, great job again on this! Hope to see more of your work in the future on here! Keep coding, and keep posting!