Re: A Philisophical Question



Keith Thompson wrote:
Skarmander <invalid@xxxxxxxxxxxxxx> writes:
[...]

English is good for writing poetry in; C is good for writing computer
programs in. If you can write a sort of poetry in C, that's great
(Obfuscated C Contest, anyone?) but that's not usually what
programming is about. Elegance in a program is a quality not usually
propagated from its syntax (though ugliness might be).


Obfuscated C Contest are the equivalent of poetry written entirely in
words you can't say on television.  They're more pornographic than
poetic.

I'd say that depends on the nature of obfuscation. This is poetic to me, not pornographic:

#define _ F-->00 || F-OO--;
long F=00,OO=00;
main(){F_OO();printf("%1.3f\n", 4.*-F/OO/OO);}F_OO()
{
            _-_-_-_
       _-_-_-_-_-_-_-_-_
    _-_-_-_-_-_-_-_-_-_-_-_
  _-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  _-_-_-_-_-_-_-_-_-_-_-_-_-_
    _-_-_-_-_-_-_-_-_-_-_-_
       _-_-_-_-_-_-_-_-_
            _-_-_-_
}

Not that that's a bad thing, of course.

Duff's device is poetic, I suppose.


It also captures the imagination by solving a problem in a practical way, albeit one that's not universally applicable.


S.
.



Relevant Pages

  • Re: now that was interesting
    ... algorithm development. ... so it would be very difficult for the Contest Team ... I think obfuscation is part of the contest, ...
    (comp.soft-sys.matlab)
  • Re: how this program works
    ... this is like an entry from an obfuscation ... >> contest. ... there are some hints there. ...
    (comp.lang.c)
  • Re: how this program works
    ... this is like an entry from an obfuscation ... contest. ... there are some hints there. ... BTW, I did a copy'n'paste into BC++ 5.02, and it ...
    (comp.lang.c)
  • Re: Obfuscating code
    ... it's probably driven me out of the contest. ... Between obfuscation ... and people testing code in the contest by submitting multiple copies ...
    (comp.soft-sys.matlab)
  • Re: A Philisophical Question
    ... > English is good for writing poetry in; C is good for writing computer ... If you can write a sort of poetry in C, ... > (Obfuscated C Contest, anyone?) but that's not usually what ...
    (comp.lang.c)

Loading