Next | Hash Hash Hash | 9 |
category_count = new_hash();
handle_article(path, category, article_body) { ... # lots of stuff ...
# count number of articles in each category category_count[category]++ }
Oops, it turns out that the counts are wrong!
Because handle_article is called more than once for each article!
continued...
Next | Copyright © 2015 M. J. Dominus |