09 November 2007

21 croissants daily post 11/09/2007

the { buckblogs :here }: Brevity vs. Clarity

  • Ruby on Rails code should be like a poem ;- )
    Code shoule be readable by humans, when I read code containing 2 ternary operators, it takes me 5 min to understand it ... What's the point? Apart from not wanting other to change it??? Fortunately, I have some tests and I am not scared to refactor ...

1 comment:

Anonymous said...

I agree... code "could be" like a poem: first of all "easy to understand", but also "a pleasure when reading it". After all I strongly believe that the main purpose of code is to communicate.
And the "real" value of a (well) written tests (or better: specs) is just communication.