Sunday, August 27, 2006

kind of neat relationshippy thing

Sick of making one-ingredient substitutions? You can now relate ingredients to one another! Use the 'add relation' link on the ingredient profile page, and you'll be prompted to assign some ingredient as a kind of another ingredient. Example:

parma ham is a kind of ham, and ham is a kind of pork

So one day soon Snacksby will run through all of these relationships and know that when you say you've got parma ham you've also got pork. Right now, though, all it does is sit around and look pretty.

This is one of those sorts of features that's sure to run into bugs where it's searching the wrong way up the tree, or there's an infinite loop, or something is related to itself or whatever, so just be on the lookout for errors with it and let me know when you see 'em!

Oh and P.S., you don't have to set parma ham as a kind of pork - Snacksby's smart enough to jump through ham and to figure it out. So don't go around assigning something like velveeta extra sharp instant cheddar cheese to cheese!

0 Comments:

Post a Comment

<< Home