poeticcode

May 6, 2006

Shortest Path

Filed under: Uncategorized — S @ 6:51 am

Long back when I came across

while(*str2++=*str1++);

I was so excited. I thought to myself, this is how I should write the code, elegant and terse, for the rest of my coding career (mind you, not “rest of my life”).

When a code does no more than what it should do, it automatically becomes more comprehensible. Ofcourse, I am not advocating one should code in assembly language.

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.