Inspiration
I did an Intercom test and failed it cos my code was not up to scratch. I rushed it and Intercom made the right call! However, I was distinctly bothered by my approach so I decided to build a similar app using proper software development techniques.
What it does
It takes in a json file with customer latitude, name, id and longitude. It reads it, calculates the customers location from the geo coordinates supplied to home office coordinates and determines who is below 100km from the office.
How I built it
Using python in an OOP design, I used a simple map of input, calculation and output by for loop iteration to create an out list in a string object that presents as a list of below 100km away customers one can invite to an event.
Challenges I ran into
I was hit with coders block over iterating the json file and actually getting the correct iterating of the customer lines through the process_customer_coordinates() method. I also had enormous trouble with dictionary handling and how to efficiently handle the output production of a customer list.
Accomplishments that I'm proud of
Despite 20 things pulling me away from coding during the development period, I was proud of dealing with it, getting over the coders block and making a decent attempt at doing it right for a new guy to coding! I ran a production build using pyinstaller but .gitignore'd it due to it being a training app.
What I learned
Rubber duck debugging is very handy when you run into coders block and cannot seemingly get your head around simple enough programming challenges. No project is too small to NOT map out and build test classes for!
What's next for 100KM Invite List
Can insert more user functions over home coordinates and customer distance if asked to. If not, that is the end of this simple yet challenging training project.
Built With
- atom
- python

Log in or sign up for Devpost to join the conversation.