October 2014
Intermediate to advanced
280 pages
7h 20m
English
Look at our original “design.”

We’re making good progress—we’ve coded all of the top conveyor belt. Our next transformation is to sort the data on its created_at field. And this can just use a standard Elixir library function, sort/2. We could create a new module for this, but it would be pretty lonely. For now we’ll put the function in the CLI module and keep an eye out for opportunities to move it out if we add related functions later.
So now our CLI module contains
| | def process({user, project, count}) do |
| | Issues.GithubIssues.fetch(user, project) |
| | |> decode_response |
| | |> convert_to_list_of_hashdicts |
* | |> sort_into_ascending_order ... |
Read now
Unlock full access