NSS Day8
Fluffy, Baxter and other Zombies
Yes, we are still coding. Where else do you get to make zombies without it getting out of hand. Well on second thoughts it did get kind of out of hand with rules about resurrection but then I am getting ahead of myself!
Today we welcomed iTerm2 in class but that was not the only new thing that we did. We had out our first day of doing test driven development or TDD. Where its goal is “specification and not validation” to write a “clean code that works”. You can read more about it here.
Using TDD we made a pet sitter app, where we listed their basic characteristics (name, gender, species, health etc) and monitored their daily requirements (energy, fullness, health) as they carried on different activities (eat,walk,sleep). This eventually “scope creep-ed” or evolved into an app that gave you power to indulge in pet fights and soon we had Fluffy who transformed from a lizard to sloth to fight and “zombify” a monkey called Baxter. Why? because we “coded” it so. And we also had a bee that lived amazingly up to to four years only to valiantly fight a camel and become a zombie.
In a day of so many new technical challenges, it was refreshing and funny to worry about why there was an error when you ran the test to resurrect fluffy. Yes, you read that right!