19
6
The goal is to produce a single line of R code that:
- Does as little as possible
- In as many characters as possible (max of 100 characters)
- And is as ugly as possible (where "ugly" can be taken to mean inefficient computational strategies, extraneous characters such as a terminating semicolon, and so forth).
Do your worst, gentlefolk!
Objective criteria for winning
The winning answer will be judged according to the following point scale (the answer with the most points wins):
- Generate a sequence from 0 to 10 (100 points)
- In as many characters (N) as possible
- 0 points if N=100
- N-100 points if N<100 (i.e. lose a point for every character under 100)
- 2(100-N) points if N>100 (i.e. lose two points for every character over 100)
- Using as many negative examples from the R Inferno as possible
- 6 points per cited example
- Each example only counts once. This is so because a "heretic imprisoned in [a] flaming tomb" can only be so imprisoned one time. Thus two global assignments in your line of code only net you 6 points.
4FAQ you @dmckee :) the criteria are pretty objective – Tomas – 2013-07-20T13:42:34.400
I have attempted to make the criteria even more explicit. If criteria 3 is still not objective enough, I could eliminate it, although I rather like it. – Ari B. Friedman – 2013-07-21T02:08:16.473
I don't understand the new scoring system at all. Objective 2 is to be as long as possible (subject to max of 100 characters), and you give fewer points for being closer to 100 (and specify points for programs longer than 100??!); objective 3 is to be as ugly as possible, and you give more points for uglier programs. So are points supposed to be good or bad?! – Peter Taylor – 2013-07-21T07:40:17.950
@PeterTaylor Edited to point out that both Objective #2 formulae produce negative points. Points are good: "The answer with the most points wins". – Ari B. Friedman – 2013-07-22T01:24:09.280
Not an objective winning criteria. See the FAQ. – dmckee --- ex-moderator kitten – 2011-11-30T11:25:46.673