Skip to main content

Timeline for A Programmers Riddle

Current License: CC BY-SA 4.0

19 events
when toggle format what by license comment
Sep 1, 2018 at 23:49 vote accept IT Alex
Aug 31, 2018 at 23:13 answer added jaam timeline score: 1
Aug 31, 2018 at 20:58 history edited Rand al'Thor
edited tags
Aug 31, 2018 at 20:35 answer added Jonathan Allan timeline score: 16
Aug 31, 2018 at 20:35 comment added Riley @WeatherVane I'm not sure where you see a contradiction in my reasoning. If you want to continue to debate, let's carry it into Sphinx's Lair instead of the comments.
Aug 31, 2018 at 20:34 comment added Weather Vane @Riley oh you did: What's the point of the loop if it terminates on the first iteration either way? That cannot be satisified on the first iteration.
Aug 31, 2018 at 20:32 comment added Taco @WeatherVane Because if Riley were to answer it on his first attempt, the next time the conditional is hit, then the loop is exited. Granted, this is not technically a while loop and the conditional is within it making it more of a do-while.
Aug 31, 2018 at 20:32 comment added Riley @WeatherVane I didn't say it would go down that branch. But if it did, it would exit the loop. If it didn't, then it would terminate due to the error. I'm not asserting that my interpretation is the only correct one. We don't even know what programming language this is after all.
Aug 31, 2018 at 20:31 history edited IT Alex CC BY-SA 4.0
added 149 characters in body
Aug 31, 2018 at 20:30 comment added Weather Vane @Riley how can if riddle is answered then exit be satisfied on the first iteration, before any attempt to solve it?
Aug 31, 2018 at 20:29 comment added IT Alex @PerpetualJ They would have to iterate to the riddle and then answer it for at least 2 loops
Aug 31, 2018 at 20:29 comment added Taco Missing some comment blocks and all that invalid syntax there. :D
Aug 31, 2018 at 20:28 comment added Riley I suppose we can't really say what will happen because the code won't even compile.
Aug 31, 2018 at 20:28 comment added Taco @ITAlex I wouldn't say it definitely doesn't, as this means that no one can solve it on their first attempt. For most, it will execute more than once.
Aug 31, 2018 at 20:27 comment added Taco @Riley It wouldn't truly end on the first iteration for everyone. It may take someone several tries to answer the riddle, thus the loop starts over.
Aug 31, 2018 at 20:26 comment added IT Alex @Riley it definitely doesn't.
Aug 31, 2018 at 20:24 comment added Riley What's the point of the loop if it terminates on the first iteration either way? :)
Aug 31, 2018 at 20:24 answer added Taco timeline score: 3
Aug 31, 2018 at 20:18 history asked IT Alex CC BY-SA 4.0