News for hackers. Stuff that matters.
Re:Show HN: CookLang – Recipe Markup Language by dmitriid on Tuesday October 26, 2021 @07:31AM (#28999017)
Every recipe (and recipe language) must include links to descriptions of ingredients and/or alternatives.

I have no idea what a "medium victorian spring spruce potato is" or whatever it is you're using. In Sweden we have only two kinds: hard and soft. Same goes for basically everything else :)

Re:Show HN: CookLang – Recipe Markup Language by Moru on Tuesday October 26, 2021 @07:52AM (#28999201)
In north Sweden we have also only two kinds of potatoes. One is called Mandelpotatis, and then we have all the rest that noone buys.

Seriously, if you don't like potatoes or think it's boring, try Mandelpotatis (if you can find it, it likes sandy, not very nutrious earth to grow or it will get sick and die :-)

I have been thinking of a way of writing my recepies so I can process them into a database some day for easier search. I realised I would never have the energy to actually do it so I'm just switching to markdown and running a static webcompiler on them to output html with search function in javascript and upload to github. Works better than expected and have everything I need.

Re:Show HN: CookLang – Recipe Markup Language by morberg on Saturday October 30, 2021 @08:17AM (#29048199)
Sounds like you have a similar setup to mine [1]. I have added PDF as an output format using pandoc. Also GitHub actions to automatically generate a new version when I push a commit.

Would you mind sharing yours? I am always looking for inspiration and ways to improve.

[1]: https://github.com/morberg/recept

Re:Show HN: CookLang – Recipe Markup Language by Moru on Wednesday November 03, 2021 @08:30AM (#29093689)
Mine is just a default setup of this:

https://squidfunk.github.io/mkdocs-material/

Document folder structure similar to yours.

I'm going to look through your collection, looks interesting :-)

Re:Show HN: CookLang – Recipe Markup Language by jfk13 on Tuesday October 26, 2021 @08:01AM (#28999283)
> In Sweden we have only two kinds: hard and soft.

I'm not sure where you get this idea. Even a basic supermarket like ICA knows more than that: https://www.ica.se/icas-egna-varor/produkter/icas-potatis/

Re:Show HN: CookLang – Recipe Markup Language by dmitriid on Tuesday October 26, 2021 @10:11AM (#29000627)
> I'm not sure where you get this idea.

From the potatoes that are immediately visible on display. You have large stands with two types of potatoes that you can pick and weigh yourself (sometimes three, the difference isn't obvious). Then you have a bunch of 3kg-5kg packs of washed potatoes of two kinds: fast and mjölig.

And possibly there are one or two packs of other kinds? Maybe those 3-5 kilo packs have different types of potatoes in them? But those are never clearly marked.

And then you arrive at a recipe, and it calls for russet potatoes or dutch cream potatoes or some other potato. What the hell are those? :)

Anyway, potatoes were just to illustrate the idea. I've had the same issues with rice, vegetables, even spices sometimes.

Re:Show HN: CookLang – Recipe Markup Language by Zababa on Tuesday October 26, 2021 @07:57AM (#28999253)
A way to do this would be to start with a list of ingredients/techniques, and have a "dependency checker" that checks that every ingredient/technique is either in the list, or explained elsewhere. This way, the base would be explicit, and you can easily track explanations.
Re:Show HN: CookLang – Recipe Markup Language by dubadub on Tuesday October 26, 2021 @07:47AM (#28999166)
That was the motivation. I had the same problem that recipes from the apps aren’t localised to local produce. Also sometimes I want to cut corners and do thing easier. I should be able to apply agile and maintain my recipes in my way :-)
Re:Show HN: CookLang – Recipe Markup Language by phonypc on Tuesday October 26, 2021 @09:03AM (#28999850)
Hard/soft presumably corresponds to the waxy/floury categorization Anglo countries often use. It shouldn't be hard to find which category a given variety of potato better fits into.
Re:Show HN: CookLang – Recipe Markup Language by dmitriid on Tuesday October 26, 2021 @11:20AM (#29001473)
What about "creamy Dutch potato"? :)
Re:Show HN: CookLang – Recipe Markup Language by phonypc on Tuesday October 26, 2021 @11:37AM (#29001716)
Looks to be floury/soft.