Monday, September 15, 2008

Cake Validation

Every one was excited to cut the cake on my 28th birthday celebration time. Anoop, one of my colleague got the knife. Ok let him cut it. We were 8 people and there was 8 slots on the cake. Each piece of cake was particularly designed for one person. Anoop placed the knife on the first slot for taking his piece of cake. Though he implemented the pressure, it didn't get cut. More than that some message was showing on the side of the knife saying it is invalid slot for that cut. That was strange. When we analysed the cake there was one coating on the top side of the cake. Then we removed the layer like a sheet. He tried again. It was cutting easily but only problem was the cake piece which each of the people got was not the intended one. 
This is similar to the situation of assigning a value to a property without validation. Knife is analogous to the text field in which we enter value. The sheet is equivalent to the validation method.
I don't need to worry at all because...... its only a dream !!!!!!!!!!!!!!!