1 Graceful and stylish in appearance or manner.
2 (of a scientific theory or solution to a problem) pleasingly ingenious and simple.

Late 15th century: from French, or from Latin elegans, elegant-, related to eligere ‘choose, select’ (see elect).


Elegant code…that was a consistent goal when I was attempting to write computer programs. Generally, that meant that the code was well-commented and as readable as possible so I could look back at it later to try to quickly understand my intent. I also hoped that others would be able to understand what I was trying to do. It is the opposite of “spaghetti code”.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.