Hi! I’m Clint and welcome to my little corner of the web. I tend to blog about computer stuff, religion, personal events, philosophy, and whatever else comes to mind. I’m thankful you are here. If you have any questions or comments feel free to drop me a note using the contact form linked above.
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.
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 :)
Ingredients 4 cups coffee concentrate*
4 cups whole milk
1/2 cup caramel syrup
Directions Mix coffee concentrate and milk in 1/2 gallon pitcher. Stir in caramel syrup and refrigerate. Pour over ice and enjoy!
I use Torani caramel sauce personally. Using that, I calculate 1 cup of the finished mixture is about 205 calories.
*Coffee concentrate directions. Make coffee using 1 cup of coffee to 4 cups of water. I do the cold brew method and let it sit overnight.