« Being a crew member at JAOO | Main | Why do I keep coming back as a speaker at JAOO Aarhus? »
What is beautiful code?
By Therese Hansen | July 2, 2008
First of all: What is beauty?
— Thomas Aquinas, Summa Theologica.
This definition of beauty by Thomas Aquinas was at the center of a talk at JAOO Aarhus, 2007. The speaker Marcel Molina took this classical definition and applied it to code.
- Integrity: Integrity is about fitness for purpose – how well does the solution fit the problem?
- Proportionality: Good structure with perfect relation between parts of a system.
- Clarity: Simplicity and clarity of code.
After the talk Kresten Krab did an interview with Marcel Molina, Glenn Vanderburg and Chad Fowler about the beauty of code and they concluded that it is something worth striving towards. Not because you want to be an artist but because it is good for your clients.
You can see the interview here:
The idea is that making beautiful code has practical value and is not just an egotistical desire on the part of the programmer who wants to be an artist. Beauty is used as an indicator of quality. Even when the beauty is in the source code and not visible to the customer of a software product it is still desirable in terms of the trade-off between cost of creation and cost of ownership.
Kent Beck talks about common code smells and the smell of ugly code can be very useful, but can the notion of beauty be of practical use as well?
Can we build on the thinking of Marcel Molina and Thomas Aquinas and get nice practical rules of thumb about beautiful code?
Category: JAOO | Tags: beautiful code, beauty, Chad Fowler, Glenn Vanderburg, Kent Beck, Kresten Krab, Marcel Molina, Thomas Aquinas | 4 Comments »

July 15th, 2008 at 8:56 am
[...] What makes code beautiful? [...]
July 16th, 2008 at 3:46 am
[...] Glenn Vanderburg recently posted a link to a conversation about beautiful code recorded at JAOO. The 20-ish minute chat is full of lots of nuggets including a Thomas Aquinas [...]
August 1st, 2008 at 3:18 pm
[...] What makes code beautiful? [...]
August 3rd, 2008 at 8:28 pm
Trackback:
[...] http://blog.jaoo.dk/2008/07/02/what-makes-code-beautiful/ има доста интересно интервю между Marcel Molina, Glenn Vanderburg и [...]