Skip to main content

Timeline for Cook me a character meal

Current License: CC BY-SA 4.0

48 events
when toggle format what by license comment
Mar 31, 2020 at 0:00 history tweeted twitter.com/StackCodeGolf/status/1244776615760060421
Mar 30, 2020 at 22:17 answer added Andrei Odegov timeline score: 1
Mar 26, 2020 at 12:30 comment added coredump Related: the Chief programming language dangermouse.net/esoteric/chef.html
Mar 25, 2020 at 21:43 comment added Jonathan Allan Yeah, I think the best thing would be to just guarantee the meal will contain at least one non-space character.
Mar 25, 2020 at 21:42 history edited RGS CC BY-SA 4.0
fix regex specification for the input meal
Mar 25, 2020 at 21:41 comment added RGS @JonathanAllan thanks for your feedback; the space character was to mimic the way we naturally write words (and hence meal names). As for the test case with only space characters, I would oppose to adding it because it corresponds to requesting no meal. The problem lies, then, in my specification for the meal as /[a-z ]+/ because I have to rule out the string with only spaces. ("Fixing" the reference implementation would mean adding a default argument to the min function.)
Mar 25, 2020 at 21:16 comment added Jonathan Allan ...furthermore, the reference implementation does not work when the meal is only spaces.
Mar 25, 2020 at 21:09 comment added Jonathan Allan ...and if it does serve a purpose, or you do not want to change it now you have 18 answers, then I think you should add a test where the meal is just space characters.
Mar 25, 2020 at 21:05 comment added Jonathan Allan What purpose does the space character have here? Seems like unnecessary fluff that will just have every answer have to filter out spaces.
Mar 25, 2020 at 20:29 history edited RGS CC BY-SA 4.0
added 122 characters in body
Mar 25, 2020 at 20:21 comment added Darrel Hoffman I suppose to be less obvious you could go with "spam spam spam spam bacon egg and spam" and search for "beans"...
Mar 25, 2020 at 20:16 comment added RGS @DarrelHoffman you are absolutely right, I am embarrassed! Would you like to suggest a recipe, or should I take care of that?
Mar 25, 2020 at 20:11 comment added Darrel Hoffman I'm disappointed that none of the example recipes involve copious amounts of spam. And your reference implementation is written in Python no less...
Mar 25, 2020 at 14:52 comment added RGS @Xcali nice suggestion, I included it :)
Mar 25, 2020 at 14:52 history edited RGS CC BY-SA 4.0
Added 1 test case as suggested by @Xcali
Mar 25, 2020 at 13:04 answer added Peter Lenkefi timeline score: 2
Mar 25, 2020 at 13:01 comment added RGS @OlivierGrégoire yes it does, the meal regex has a space next to the character range a-z!
Mar 25, 2020 at 10:53 comment added Olivier Grégoire cod fish (with a space) doesn't match the meal regex. Could you fix it?
Mar 25, 2020 at 10:51 answer added Olivier Grégoire timeline score: 5
Mar 25, 2020 at 10:47 answer added sportzpikachu timeline score: 1
Mar 25, 2020 at 10:07 comment added Kevin Cruijssen Suggested test case: the one suggested above by @Xcali, or something like ['test','test'], tt -> 2. The suggested 4-byter in the comments of the 05AB1E answer works for all current test cases, but fails for these two test cases due to the duplicated letters.
Mar 25, 2020 at 9:22 history edited RGS CC BY-SA 4.0
added 70 characters in body
Mar 25, 2020 at 3:18 answer added Mukundan314 timeline score: 2
Mar 25, 2020 at 3:14 history became hot network question
Mar 25, 2020 at 1:54 answer added user92069 timeline score: 1
Mar 24, 2020 at 23:47 answer added Bubbler timeline score: 3
Mar 24, 2020 at 22:55 answer added Gymhgy timeline score: 1
Mar 24, 2020 at 22:33 answer added Grimmy timeline score: 3
Mar 24, 2020 at 22:05 answer added Neil timeline score: 0
Mar 24, 2020 at 21:59 answer added Neil timeline score: 2
Mar 24, 2020 at 20:34 answer added Jonah timeline score: 7
Mar 24, 2020 at 20:28 comment added Xcali Suggest something like ['some', 'bountiful', 'bagful', 'of', 'ingredients', 'here', 'are', 'bliss'] bolognese -> 1 as a test case, since it makes the duplicated letter the limiting factor, and includes an incomplete portion for a recipe (3 os total, 2 needed for a recipe).
Mar 24, 2020 at 20:20 answer added Xcali timeline score: 2
Mar 24, 2020 at 19:55 comment added RGS @mypronounismonicareinstate good point. Also, no it was not intended. edited the test cases to add two of those.
Mar 24, 2020 at 19:54 comment added RGS @Arnauld be my guest; also, just edited the test cases so pls check that :)
Mar 24, 2020 at 19:54 answer added Noodle9 timeline score: 1
Mar 24, 2020 at 19:54 history edited RGS CC BY-SA 4.0
added 209 characters in body
Mar 24, 2020 at 19:52 comment added Arnauld May we take everything in uppercase instead?
Mar 24, 2020 at 19:36 comment added Value Ink @mypronounismonicareinstate ah, I typed in "there" instead of "these" for the program.
Mar 24, 2020 at 19:35 answer added Value Ink timeline score: 8
Mar 24, 2020 at 19:34 answer added the default. timeline score: 2
Mar 24, 2020 at 19:33 comment added Value Ink I (and my program) counted 4 "or" in "there are some random words wow" because there are 4 "o" and 4 "r", but your case says 3? What am I missing?
Mar 24, 2020 at 19:31 answer added Surculose Sputum timeline score: 10
Mar 24, 2020 at 19:31 comment added the default. @RGS Imagine a comma-separated list without commas. (in fact, a comma-separated list will also often work similarly to a normal list of characters) Is it intended that in the examples, no meal uses the same character twice?
Mar 24, 2020 at 19:25 comment added RGS The point here is that the ingredient list does represent a list, so I don't know if I'm comfortable allowing that.
Mar 24, 2020 at 19:23 answer added Arnauld timeline score: 5
Mar 24, 2020 at 19:21 comment added Robin Ryder May we take input as a list of characters? (Ignoring that there are separate words, since they serve no purpose.)
Mar 24, 2020 at 18:59 history asked RGS CC BY-SA 4.0