Re:Interesting C code
by nadam on Friday July 08, 2011 @09:40AM
(#2742354)
Obfuscation alone is not interesting, but 'code compression' (to achieve something using as few characters as possible) is a very interesting puzzle for the brain I think.
[ Parent
| on HN ]
Re:Interesting C code
by pavel_lishin on Friday July 08, 2011 @02:10PM
(#2743459)
It's called "code golf", and from what I can tell, perl is the undisputed king of golfing languages.
Someone ought to make a quiz page - "is this perl golf, or a cat walking on a keyboard".
,[.,] is /bin/cat in brainfuck. Though, brainfuck fails miserably at most golfing challenges.
Re:Interesting C code
by icebraining on Friday July 08, 2011 @10:35PM
(#2744841)
,[.,] doesn't actually concatenate files, though.
Personally, I think that using golf handicapped languages is the only way to keep it interesting. If you can choose the language, it gets too easy. One could even implement 'cat' as a single character, provided his language of choice.