Posts

EAT THE FROG

Image
  “If it’s your job to eat a frog, it’s best to do it first thing in the morning. And if it’s your job to eat two frogs, it’s best to eat the biggest one first.” - Mark Twain We have been meaning to write a mail on procrastination for over 3 weeks now but we kept procrastinating it. Then some of us came across and read this book, “Eat That Frog” by Brian Tracy. To put it mildly, it was life-changing. Procrastination is a menace to say the least and every single one of us tends to fall prey to it. This happens particularly when we have a task at hand which is uninteresting or rightout unpleasurable for us. It is this particular tendency that Mr. Tracy set out to tackle, and tackle he did. H...

Stubs and Drivers

Image
Stubs and Drivers The concept of Stubs and Drivers are mostly used in the case of component testing. Component testing may be done in isolation with the rest of the system depending upon the context of the development cycle. Stubs and drivers are used to replace the missing software and simulate the interface between the software components in a simple manner. Suppose you have a function (Function A) that calculates the total marks obtained by a student in a particular academic year. Suppose this function derives its values from another function (Function b) which calculates the marks obtained in a particular subject. You have finished working on Function A and wants to test it. But the problem you face here is that you can't seem to run the Function A without input from Function B; Function B is still under development. In this case, you create a dummy function to act in place of Function B to test your function. This dummy function gets called by another function. Su...