16
Obviously, code golfing is all about making the most of the least code. Who really cares what the actual output is?
While we have had a challenge for highest input-to-output ratio, this is a call for most finite and deterministic output with given code lengths. Ironically, this challenge is then not code-golf.
Rules:
Write three independent snippets (not full programs/functions).
The snippets must be in the same language.
Score is total number of outputted bytes.
Outputs may be in the form of a result, STDOUT, etc.
The snippets may not cause any error.
The snippets may cause different forms of output.
Trailing newline characters are not counted.
The first snippet must be 1 byte or the minimum length that produces at least 1 byte of output.
The second snippet must be one byte longer than that.
The third snippet must be two bytes longer than the first.
5Yeah I think the output needs to be restricted to be theoretically finite, you should also probably specify that it should be deterministic (unless I misunderstood and randomness is something you would actually want...) – FryAmTheEggman – 2015-12-21T18:18:26.677
Are we allowed to assume that each snippet is run on a fresh REPL instance? – SuperJedi224 – 2015-12-21T18:24:42.480
@SuperJedi224 Yes. – Adám – 2015-12-21T18:26:52.477
What's "form" in "different forms of output"? – Luis Mendo – 2015-12-21T18:34:45.520
@LuisMendo E.g. one snippet may pop up a message box, while another prints to STDOUT. – Adám – 2015-12-21T18:37:01.603
@FryAmTheEggman Forgot to write finite. Deterministic is a good idea. Thanks. – Adám – 2015-12-21T18:38:07.977
Is it not deterministic enough if my output includes the memory address of an object instance? Could I just not count that part in the byte count? – geokavel – 2015-12-21T19:05:30.570
@geokavel Same kind of issue as SuperJedi224's answer below. Write it, but include an alternate answer that does not vary.
– Adám – 2015-12-21T19:17:01.180Does outputting the current date and time count as deterministic? – Embodiment of Ignorance – 2019-05-21T02:41:24.597