Home Software Consultant

Lesson of the week - seek->sense->share


It's amazing, when you come across something which strongly resonates with you.I came across this idea about learning and sharing, Active sense making. This week I had this experience with a fellow developer.He has joined recently our team, and had little experience in writing unit tests.I had directed him to various online resources, and some books.But, the best way to learn is to start writing tests.He was struggling to write test for a behavior.So, using my own knowledge and experience, and my sense making - I suggested him to think in this way -

"given" there are 2 orders having "Chocolate" as items,"when" the user searches by typing "Chocolate", "then" the user should see the 2 orders

And, he immediately grasped as to what approach was needed to write tests.