News for hackers. Stuff that matters.
Re:Show HN: CookLang – Recipe Markup Language by pintxo on Tuesday October 26, 2021 @06:11AM (#28998491)
This looks really fantastic.

Is anyone working on let's name it CookHub already? So essentially GitHub for receipts. The nerd in me wants to fork receipts and share my small adaptations to the community.

Re:Show HN: CookLang – Recipe Markup Language by d--b on Tuesday October 26, 2021 @06:27AM (#28998572)
That would be pretty cool. It would already work in github, but yeah a dedicated site would probably be better ;-). I'm afraid that the intersection of people interesting in cooking and people who know how source control works is likely pretty niche

The other problem I have with community cooking websites is that usually people always underestimate the cooking time and that's annoying as hell. Like people would say you need to cook onions for 10 minutes, while onions take close to 25 minutes to be cooked. On the French website marmiton, it was so ubiquitous that they have moderators come in and fix people's recipes.

Edit: see https://slate.com/human-interest/2012/05/how-to-cook-onions-...

Re:Show HN: CookLang – Recipe Markup Language by rkangel on Tuesday October 26, 2021 @07:00AM (#28998774)
My issue with recipe timings is that even if you cook things for as long as it says, the overall time to cook the recipe is always very "optimistic". I assume the issue is some combination of marketing and the fact that the test cook was done by a professional chef who can dice 10 onions in a minute.
Re:Show HN: CookLang – Recipe Markup Language by dkarl on Tuesday October 26, 2021 @08:34AM (#28999592)
Ingredient prep is intentionally left out of recipe timings. In theory, this lets everybody adapt the recipe timing to themselves, because only you know if you can chop two onions in three minutes or thirty seconds, but as with the Doomsday Device in Doctor Strangelove, it's worse than useless if nobody knows about it. "Why didn't you tell the world?"
Re:Show HN: CookLang – Recipe Markup Language by phonypc on Tuesday October 26, 2021 @08:20AM (#28999471)
I very much doubt that most recipe timings actually involve a timed test cook at all. They're just guesstimates.
Re:Show HN: CookLang – Recipe Markup Language by 2muchcoffeeman on Tuesday October 26, 2021 @08:10AM (#28999378)
I imagine it’s done that way because people don’t necessarily know what to look for when cooking something. If some one doesn’t know how to cook steak, you can’t tell them “cook till medium rare”. So we start trying to come up with proxies.
Re:Show HN: CookLang – Recipe Markup Language by 2muchcoffeeman on Tuesday October 26, 2021 @07:55AM (#28999226)
That’s to caramelise onions. Cooking onions through takes a few minutes. Plenty of instances where you don’t want to caramelise onions.
Re:Show HN: CookLang – Recipe Markup Language by d--b on Tuesday October 26, 2021 @07:37PM (#29007818)
Not really caramelise is more like 40 minutes. You do need at the very minimum 15 minutes to cook onions, 20 to 25 to “brown” them.
Re:Show HN: CookLang – Recipe Markup Language by fiedzia on Tuesday October 26, 2021 @07:17AM (#28998903)
> people would say you need to cook onions for 10 minutes, while onions take close to 25 minutes to be cooked

It's up to recipe author to define what they cook and how. If you think 25 min is better, fork it.

Re:Show HN: CookLang – Recipe Markup Language by egeozcan on Tuesday October 26, 2021 @07:56AM (#28999240)
Or report the bug, which should probably have another name in this context.
Re:Show HN: CookLang – Recipe Markup Language by randomswede on Wednesday October 27, 2021 @08:11AM (#29012147)
The main problem for me (who am interested in cooking, as well as somewhat au fait with version control) is that at this point in my life, I could not for the life of me write down a recipe for almost anything that I cook, because it is all based on "enough" and "to taste", with cooking times being in the "well, you look at the ingredients and a cooking schedule effortlessly forms in your mind" (none, by the way, based on actual time), allowing me to do things like cooking things in the oven and three or four pots on the stove, and have everything ready at the same time, by staggering the start times.

And I literally cannot tell you how I do it, because at this point, I don't know. I do know how I got there, though. Cooking, lots of it, at various scales and in variously equipped kitchens.

Scale-wise, I have cooked for 1. And on the upper end, I have cooked for about 50.

Re:Show HN: CookLang – Recipe Markup Language by davidjytang on Tuesday October 26, 2021 @10:11AM (#29000625)
How do we specify "cook until translucent"?
Re:Show HN: CookLang – Recipe Markup Language by culpable_pickle on Tuesday October 26, 2021 @01:47PM (#29003606)
I believe the term is usually "Sweat the onion"
Re:Show HN: CookLang – Recipe Markup Language by pintxo on Tuesday October 26, 2021 @06:31AM (#28998592)
Just another reason to allow easy forking ;-)
Re:Show HN: CookLang – Recipe Markup Language by dmitriid on Tuesday October 26, 2021 @07:32AM (#28999021)
Re:Show HN: CookLang – Recipe Markup Language by CornCobs on Tuesday October 26, 2021 @09:21AM (#29000052)
Fantastic idea! Another benefit I can think of having such a repository combined with this markup language is powerful semantic searches - filtering by sets of ingredients, and perhaps adding the ability to add tags to the recipes
Re:Show HN: CookLang – Recipe Markup Language by zmix on Friday October 29, 2021 @02:59PM (#29042283)
For that you would need to convert the recipes into some format, that is easy to query, like https://schema.org/Recipe or http://www.formatdata.com/recipeml/

At least the JSON conversion would be nice to have, then I could XSL-T it into RecipeML.

Re:Show HN: CookLang – Recipe Markup Language by dubadub on Tuesday October 26, 2021 @09:24AM (#29000085)
certainly!
Re:Show HN: CookLang – Recipe Markup Language by dubadub on Tuesday October 26, 2021 @06:26AM (#28998567)
Yeah, the same here :-). We created a placeholder repo https://github.com/cooklang/recipes, but it still subject to workout structure and probably it makes sense to standardise units in some way.
Re:Show HN: CookLang – Recipe Markup Language by imjared on Tuesday October 26, 2021 @11:03AM (#29001269)
There was a project a while ago that did this for tacos but it seems to have fallen by the wayside. (Or the catalog is complete)

https://github.com/sinker/tacofancy

Re:Show HN: CookLang – Recipe Markup Language by 2muchcoffeeman on Tuesday October 26, 2021 @08:03AM (#28999307)
I’m not sure you’d want to fork it like version control does. If someone makes a variation that is not a correction, you’d want to have that easily available on the main repo with a link back to the original.
Re:Show HN: CookLang – Recipe Markup Language by captn3m0 on Tuesday October 26, 2021 @09:12AM (#28999949)
https://www.cinc.kitchen/info/features lets you fork recipes. forkthekitchen.com (now dead) was another similar effort. So did diy.soylent.com (now dead as well).
Re:Show HN: CookLang – Recipe Markup Language by soperj on Tuesday October 26, 2021 @12:13PM (#29002230)
I'm building something with that functionality currently at https://www.reciped.io/, I've turned the search off until it's actually ready to go, but you can see what a recipe would look like here: https://www.reciped.io/recipes/mushroom-and-onion-pizza/

Doesn't use recipe-lang though, just uses markdown.

Re:Show HN: CookLang – Recipe Markup Language by pelagicAustral on Tuesday October 26, 2021 @09:49AM (#29000340)
Re:Show HN: CookLang – Recipe Markup Language by Zababa on Tuesday October 26, 2021 @10:40AM (#29001003)
Ingredients seem to form a tree but I think a DAG would be more appropriate.