22
Perth Code Dojo 2 @willwebst #CodeDojo

Perth codedojo 2-checkout

Embed Size (px)

Citation preview

Perth Code Dojo2 @willwebst

#CodeDojo

Check-In➔ Your name➔ What you do (at work)➔ A random fact about yourself

Code Dojo FormatA Coding Dojo is a coding session centered around a programming challenge.

The dojo provides a safe place to learn and experiment away from the pressures of business delivery.

All programmers of varying skill levels meet as equals to learn and share.

Software Craftsmanship“Deliberate practice is closely related to the attained level of performance of many types of experts” - Dr. K. Anders Ericsson

10,000 hrs rule - Malcolm Gladwell

Dojo Rules➔ Paired Programming➔ Simple Design➔ Test Driven Development➔ Refactoring

Pomodoro➔ Pomodoro Technique

◆ 25 mins on, 5 mins off◆ http://tomatoi.st/perthcodedojo

➔ Four iterations

Retro & PizzaClosing with Pizza and a mini retrospective

➔ Share solutions on the big screen➔ Discuss challenge / approach➔ Feedback on the dojo

Polite NoticePlease respect each others commitment.

During a Pomodoro.➔ No Facebook➔ Mobile phones➔ Etc.

Have Fun!Most importantly have fun!

➔ Drinks are available - help yourselves

Supermarket CheckoutImplement a check out that handles the following items and returns a running total

Product Cost Special

Apples 50 cents Buy 2 get 3rd free

Cherries 5 dollars

Mangos 3 dollars

Objective

Make the checkout be extendable.

So it can handle multiple discount and be flexible for the future.

Scenario 1Implement a check out that handles the following items and returns a running total

Product Cost Special

Apples 50 cents Buy 2 get 3rd free

Cherries 5 dollars

Mangos 3 dollars

Begin!

25 mins

Stop!

5 mins

Scenario 2Buy 3 cherries and save 7.50Product Cost Special

Apples 50 cents Buy 2 get 3rd free

Cherries 5 dollars Buy 3 save 7.50 dollars

Mangos 3 dollars

Begin!

25 mins

Stop!

5 mins

Scenario 320 % off Cherries

Bonus: Apply a 80% discount. What happens to your total balance?

Begin!

25 mins

Stop!

5 mins

Mini RetroHow did you find the exercise?

What did you learn?

Share your solution!

Thank you sponsors!Code - http://github.com/burlistic

Slides - http://speakerdeck.com/burlistic

@willwebst

Next session the last monday of the month