4 ms·
That isn't the normal way of measuring the length of code in code golfing contests. It's number of normal-sized lines, for some measurement of normal that is le
by benatkin 15y ago
That isn't the normal way of measuring the length of code in code golfing contests. It's number of normal-sized lines, for some measurement of normal that is less than 1400 characters. Pretty neat, though; just a misleading title.
- rcthompson 15y agoMaybe "in one Python statement" would be more appropriate.
- mahmud 15y agoEvery Lisp program can be rewritten to be just "one expression" `(progn ,@program) What have we achieved here?
- tjoff 15y agoI think the first paragraph explained it quite well. Whether or not the feat itself is impressive or not I don't really know but the reason for the quest was motivated.
- mahmud 15y agoMy point was that "one-line" is a faulty criterion for measuring compactness if we allow for arbitrarily long lines: or "long cat is long" considered harmful.
- nknight 15y agoI'm guessing you don't deal with Python much. Python actively discourages this sort of thing, it's actually hard to create obfuscated code of the kind you see in most other languages. That this was even possible surprised me somewhat, that he actually figured it out I find quite impressive.
- mahmud 15y agoFair point, and the magnitude of this feat was not lost on me. I was just speaking in general, we need a better metric for one-linerness than s/\n//g.