Next | Hash Hash Hash | 17 |
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!
Next | 17 |