Comment

Comment by chuckl

Just finished my own overthinking of recipe structures. I figure that a recipe is more or less an upside-down tree!

Where you start with a list of all the nodes (ingredients)

Have a n:1 relationship with the next series of nodes (steps)

until you finish at a single node (the dish you're trying to make)

So instead of having a separate chunk of "here's my ingredients" and "let me repeat the ingredients and one by one instruction until the end" I figure you can display the upside-down tree to convey more information with less words.

An example being https://cookbook.cstebbins.com/recipe/bul-koki

With the underlying tree structure looking like https://assets.cstebbins.com/cookbook/images/bulkokiTree.png

parent chuckl 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton