←back to thread

359 points FromTheArchives | 1 comments | | HN request time: 0.199s | source
Show context
Imnimo ◴[] No.45293673[source]
I looked at the example for computer science basics for a 7th grader interested in food. Explanations include:

"a list can be used for a recipe"

"a set can be used to list all the unique ingredients you need to buy for a week's meals"

"a map can be used for a cookbook"

"a priority queue can be used to manage orders in a busy restaurant kitchen"

"a food-pairing graph can show which ingredients taste good together"

Maybe I'm over-estimating the taste of 7th graders, but I feel like I would get sick of this really quickly.

replies(12): >>45293709 #>>45293849 #>>45294241 #>>45294326 #>>45295433 #>>45295632 #>>45295729 #>>45295945 #>>45296066 #>>45297739 #>>45300529 #>>45301902 #
1. legacynl ◴[] No.45301902[source]
At first glance this seems fine, but pondering it for a moment, I think this is pretty bad. These analogies don't fully make sense. Also they kind of work on their own, but they clash together. A map is the same as a cookbook, and a list is the same as a recipe. A cookbooks contains recipes, so a map contains lists?