Price Calculator Kata (Part 2)

I scroll down and read the next requirement to implement…Discount. Hmm, I think I can do this easily. Let’s see. Jinx, no take backs Let’s do the easy part first. I modfied my PriceResult class to take a DiscountRatePercent and then to calculate the discount in the total. Add a test to verify and boom, done. Easy peasy. I added another test to check that discount and tax were working together just to make sure.
Read more →

Price Calculator Kata (Part 1)

The Beginning I’m a big fan of Zoran Horvat’s courses on Pluralsight and I follow him on Twitter. I saw that he posted this kata as a challenge to another person who was arguing against hime about coding paridaims (procedural vs oop vs functional). I was finishing up my classes anyway and figured this would be a good time to try out the things I’ve been learning. I mentioned it to my team and they said they would join me, although we will see if they follow through :)
Read more →