Code as poetry

"Kavidhai variyin is suvai, artham puriyum varai" – Vairamuthu

I can't more agree with Vairamuthu, you can enjoy the poetry till you can make sense of it. I think the same holds true for programmers code. The following code is a snapshot from EFY's software section. Check out if it makes sense or not.

C code snippet from EFY:

timex()

{

struct time t;

int a,b,c,e=0,f=0,g=0,h=0,m=25,x,y,z=0,button;

WIN:

gettime(&t);

..

if(a>12)

{

a = a-12;

}

if(a==0)

{

a = 12;

}

else

{

a=a;

}

e=a/10

..

The code is absolut beauty as it satisfies Vairamuthu's rule!

Now how far can one take metaphor in software development. Check this out. Its from General Magic.

The ultimate desktop!

desktop

Advertisements

3 Responses to “Code as poetry”


  1. 1 S.Karthikeyan June 2, 2006 at 10:50 am

    Venkat. Thanks buddy! Do drop in more interesting blog entries.

  2. 2 Venkat May 31, 2006 at 1:02 pm

    Hi Karthik
    Renaissance indeed! This blog is fantastic. Keep it up, the layout is fabulous and your content is great as ever. This is a giant leap over the previous one!


  1. 1 Ruby « Humble Programmer Trackback on September 8, 2006 at 7:06 pm

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




Pages

Thru Lens

Tweets

View Karthikeyan S's profile on LinkedIn
Alltop, confirmation that we kick ass

%d bloggers like this: