5
1
In this challenge, you must write a Hello World program that is both short and complex. We measure complexity by Cyclomatic McCabe complexity, and length by the number of bytes (not characters).
Score = complexity / bytes
For example, if the cyclomatic complexity is 5 and you use 100 bytes, your score is 5/100=0.05. If the cyclomatic complexity is 25 and you use 200 bytes, your score is 25/200=0.125.
The program shall take no input. The program must output exactly the ASCII-encoded string:
Hello, world!
in this exact case. This string may or may not be followed by a single newline (LF, ASCII 10). No other text shall be output.
Is this really code bowling? Seems like golf, with an added element. – Iszi – 2014-01-27T21:42:51.333
@Iszi bowling is more appropriate than golf in this case because big score wins. – hildred – 2014-01-27T22:23:57.903
@hildred Highest score wins, but the code has to be fairly short to keep a score high. Though the scoring may not be golf-like, the nature of the challenge most closely matches code golf. – Iszi – 2014-01-28T02:41:18.480
1@Iszi, I'm not sure whether it's really bowling, but it's certainly not golf because the scoring depends on a factor other than the length of the code. – Peter Taylor – 2014-01-28T12:31:17.687
@PeterTaylor I understand there's a factor other than length of code, but length of code is a strong enough factor in this that I think it really does fit. I'm pretty sure we've had other modified code golf challenges like this before, and I can't think of another tag that fits well enough - unless you just want to genericize it to code bowling. – Iszi – 2014-01-28T14:07:48.437
@Iszi: see the tag wiki for [tag:code-golf].
– Peter Taylor – 2014-01-28T14:08:59.217Ack, I meant "genericize it to code challenge" not bowling. And it looks like the Wiki supports that. – Iszi – 2014-01-28T16:09:52.093