You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?)
The text was updated successfully, but these errors were encountered:
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
Questions I have and want write down to learn.
The text was updated successfully, but these errors were encountered: