Thursday, August 07, 2008

on why i love sleeping....

This is happening to me for maybe the nth time. i have a particularly messy code to fix and the turnover is tomorrow. The client suggested a code which i did not like. It was not elegant and i was not comfortable enough to load it. Yesterday was spent trying to figure out a bug in one of the kids' code. So i did not have a chance to look into the problem i was supposed to fix. i even took a printout of the program hoping to maybe read it at home and figure out an elegant solution. Of course, i did not even take out the printout when i reached home - talk about trying to juggle between career and home!

Anyway, i woke up in the middle of the night and came up with this simple but elegant fix. i mean, i just woke up and thought "hey, maybe i should fix it this way". i guess my sub-conscious mind was working on this porblem the whole time i was watching the silly serials and those haseena doing the stunts on Khataron ki khiladi! This has happened many times before. i would just wake up and come up with solutions to problems that seemed seemingly unsolvable during my waking hours. Does it mean my sub-conscious mind is so much more powerful than the conscious one i am so proud of? But then, who cares. Conscious or sub-conscious, my mind is my own.

i talked to SM and told him about it and he said it was the best solution to this problem. Now, i have to tell my client that i am not going to code the way he wants me to and try not hurt his ego!!