in reply to IYO, what is elegant code?

IMO, code is elegant if all of these are true:

If code is efficient but unreadable, it is no longer elegant. Likewise, code that does what it should do, but looks like it would do something else, is inelegant. I like code styled like this.

Please note that code does not have to be elegant in order to be useful or entertaining.

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Replies are listed 'Best First'.
Re: Re: IYO, what is elegant code?
by stonecolddevin (Parson) on Jul 13, 2003 at 17:41 UTC
    That makes TOTAL sense. Thank you for the link, I'll make use of it for sure. :-)

    And if you're feeling lucky... come and take me home And if you feel loved If you feel lucky, if you feel loved If you feel lucky, if you feel loved You've crossed the walls - Excelled Further along through their hell All for my heart, I watch you kill You always have, you always will Now spread your wings and sail out to me....