"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.
No comments:
Post a Comment