PROGRAMMERS! Software and databases...

Status
Not open for further replies.

Johntodd

Super Member
ECF Veteran
Jun 18, 2011
676
833
USA
I would make changes to use a standard format for my base format in storing recipes and ingredients so long as the standard format supported all of the elements that I currently track (weight, inventory, cost, etc).

I have your program now, too. I love it, too!

Your individual recipe save files track all that? I must be misunderstanding; why track these things for an individual recipe file?
 

AttyPops

Vaping Master
ECF Veteran
Jul 8, 2010
8,708
132,353
Hc Svnt Dracones - USA EST
I would think that's actually not part of the recipe-proper. It's other files in the application (inventory file and items file, for example).

The real trick in all this....if you have that level of application detail...is mapping imported recipe items to item-file items. There's probably no industry-standard-code for the items. Maybe UPC code? But then a lot of what I read above was just textual description...e.g. "1% flavor x"
 
Last edited:

HotRod19579

Super Member
ECF Veteran
Nov 8, 2011
897
979
66
Round Rock, Texas
I have your program now, too. I love it, too!

Your individual recipe save files track all that? I must be misunderstanding; why track these things for an individual recipe file?
I don't save your recipes in individual files. Ingredients along with all recipes using those ingredients are stored in a single XML document. I had considered making these individual files (separate recipe files, one ingredients file) but I chose not to because of the potential issues that could arise. If the files would become out of sync with each other you could have a recipe pointing to ingredient information that no longer exists. The advantage of this structure is that you can update an ingredient and the update to the ingredient is immediately reflected in all recipes that reference the ingredient. For example, rename one of your ingredients and then look at the recipes that reference the ingredient, the name change is reflected in the recipe.
 

Demiurgous

Super Member
ECF Veteran
Verified Member
Apr 2, 2013
505
939
Orange County, CA, USA
If all the software(s) can import the same file(s) and parse them properly, then we've got our standard.

I still think the easiest method is an online DB of recipes. You can then export in a selected format that for a given program to import - or just reference the recipe online when mixing.
 

BostonSean

Senior Member
Oct 20, 2014
105
44
Stoughton, MA
JSON is used pretty much everywhere now and there are spectacular libraries for it for Python (my personal fav) and every other current programming language out there but it's more of an API thing really. A way for web apps to toss information back and forth. XML is a solid standard that is more document oriented. Either way, this noble task would require more than a few Open Source programmers getting together. As already stated, the biggest problem is that everyone wants to use Their Thing when writing something. I've been using Open Source only since 1999 and the same problem exists there. No consistency! :p
 
Status
Not open for further replies.

Users who are viewing this thread