From another thread I was introduced to the concept of "metric" which I interpret like "that which you find enjoyable to find in what you do".
I started to think of what my metric is pertaining to programming.
Since many years I've had a note on a postit that I rewrite and put besides my screen at each place I work. It's in Swedish since I am but it reads something like: "Don't be clever, be obvious." or maybe "Don't be clever, be clear.". I've been working a lot on old Pascal systems where 20+ consultants have been working for 15+ years and clarity is the treat that I've come to appreciate most. As a beginner it made me happy since I could make myself useful. As years went by striving for clarity made it easier for me to introduce new consultants to the (huge) system.
Now days I'm learning OO and .NET and my metric is becoming more complex. I find myself striving to be clear - of course - but also to write "elegant" code. Well, "elegant" might not really describe what I mean but I don't really know how to put it. I will try...
To me elegant code is clear code, clearly stating what is what and what parts are supposed to do. Elegant code is simple code, it uses the simplest concepts possible even at the cost of minor impact on performance. Elegant code reads like a story, it is distinctly broken down into easily understandable pieces - like paragraphs in a good book - that tell the story. Elegant code is stringent without being terse. Elegant code is to programming what poetry is to a language.
I think my metric is elegance, as described above.
What is yours?
This post has been edited by jens: 13 September 2010 - 01:22 PM