blueintegral / WaitOrWalk

The information you really want when waiting at the bus stop: is it quicker to wait or to walk? Only works for Georgia Tech right now.
9 stars 3 forks source link

Better naming conventions for variables? #28

Closed darkzeroman closed 11 years ago

darkzeroman commented 11 years ago

So, the following is how the lookups occur:

Process for looking up the times for walking and bus:
    Get start and stop locations from get request which are stop tags
    Convert those to stop titles
    Find the routes that service both stop titles
    Get the corresponding stop titles from the stop tags for the route chosen
    Call the NextBus API with the stop tags
    Call own API with the stop tags

This is necessary because routes use different stop tags for the same stop location.

So to help look things up fast, I use lots of dicts, but I can't figure out a good way to name them. Examples:

# key: stop tag, value: stop title
stop_key_tag_value_title = dict()
# key: (route,stop title), value: stop tag
stop_key_route_and_title_value_tag = dict()

Can anyone think of anything better?

darkzeroman commented 11 years ago

Seems like this is the best we can do for now.