2

I would first model this by creating a table which includes the taste components (and perhaps far more data) of each ingredient per unit. This table could look something like this: Ingredient | Salt | Fat | Acid | Crunch | Umami | -------------------------------------------------------- Bacon | 5 | 6 | 3 | 7 | 8 | Lettuce ...


2

You should be encapsulating in functions / methods as much as possible such that repetition is ultimately minimal (seek and extract common factors, ad nauseam). But that goes without saying. The other way to view this is that you need some independent, reactive component that does the necessary things automatically, each time you modify the set, by "...


1

Let's say you have two ordered lists of nodes that connect two rings. For this example: list1 is the more inner ring with nodes a b d c list2 is the more outer ring with nodes Q R S T I'm going to refer to the nodes & edges between rings as 'spoke nodes & edges' and I'm going to assume that they line up in a one to one fashion. That means there ...


Only top voted, non community-wiki answers of a minimum length are eligible