Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2 re-develop route segmentation #2

Open
maxgrossman opened this issue Jun 8, 2017 · 2 comments
Open

#2 re-develop route segmentation #2

maxgrossman opened this issue Jun 8, 2017 · 2 comments

Comments

@maxgrossman
Copy link
Owner

The old build code used a whole bunch of for loops to slice up bus routes.
Some combination of promises could probably make this quicker and less code.

The code should follow the following small pseudocode

  • grab the routes and bus stops from the api
  • Find where in that data structure includes 'iterables' and use that in a promise.map() so the same process I used to figure out how to slice buses can be done quickly.
  • Take the thenable from that .map() and get it into a db, hopefully with the same promise-ability.

Questions I have and want write down to learn.

  • concurrence v. parallelism (I know node is concurrent via the way the node app works. What does that mean for my attempt at essentially going beyond a for loop?)
@maxgrossman
Copy link
Owner Author

Answers to Questions:

@maxgrossman
Copy link
Owner Author

What I learned when coding here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant