3 ms·
Elegant code is code that has a minimum of visual complexity that captures the necessary complexity of the problem. The key thing to realize is that elegance i
by hackinthebochs 15y ago
Elegant code is code that has a minimum of visual complexity that captures the necessary complexity of the problem.
The key thing to realize is that elegance is necessarily a property of the medium. An elegant solution to a problem written communicated through text will be different than one communicated audibly, as there are different mental facilities available for understanding said code.
- randomdata 15y agoI will add that your first glance at the code should give you the same feeling that you get when you see a hot sports car or an Apple product[1] for the first time. Humans are attracted to visual appeal and code is no exception. Code that looks visually appealing is the code you are going to enjoy maintaining. [1] I realize Apple's design is not everyone's taste, it's just an example.