You are currently viewing Python Demo

Python Demo

In a recent technical assignment from an interview, I was given a challenge: a simple api to retrieve if a restaurant is open at the current time.

This prospective employer suggested writing in (unfamiliar to me) Python at first instead of my strong, recent experience with C#.NET.

I dove in.

Since I engineer software and not just write code, I started with use cases and design, basing my methodology loosely on IDesign.

I used Flask for the api handling.

The README.md on github contains the use cases and other design notes, along with screenshots of the results.

Python itself was not difficult to program in, due to my extensive background in computer languages, but using Visual Studio Code turned out to be very problematic as a newcomer to Python. I faced too many obstacles before switching over to PyCharm, where most everything went smoothly.

I typically like nesting source and test in different subfolders, but I had IDE issues with pathing that I finally decided to ignore for now in the interests of expediting.

Code available at GitHub

Leave a Reply