Shortest Path

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.

Advertisements

Leave a comment

Filed under Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s