Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

TDD Boot Camp

5,804 views

Published on

TDD Boot Camp - Dec 12, 2009 at Oracle Aoyama Center

Published in: Technology
  • Be the first to comment

TDD Boot Camp

  1. 1. (a.k.a id:t-wada or @t_wada) Dec 19, 2009 @
  2. 2. http://www.flickr.com/photos/snapperwolf/2607585548/
  3. 3. http://www.flickr.com/photos/snapperwolf/2607586846/
  4. 4. http://www.flickr.com/photos/recompile_net/3298985098/
  5. 5. ( )
  6. 6. 1. 2. 3. 4. 5. 6.
  7. 7. Refactoring Green Red ) (
  8. 8. Refactoring Green Red ) (
  9. 9. Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”. 1 100 3 Fizz 5 Buzz 3 5 FizzBuzz http://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ http://www.aoky.net/articles/jeff_atwood/why_cant_programmers_program.htm
  10. 10. • • • • http://blogger.ukai.org/2007/09/itpro-challenge.html
  11. 11. • • • • • •
  12. 12. • • • • • •
  13. 13. • • •
  14. 14. • • • •
  15. 15. Refactoring Green Red ) (
  16. 16. • • • •
  17. 17. Map Last Recently Used (LRU) Cache Map
  18. 18. # lru.put(“a”, “dataA”); lru.put(“b”, “dataB”); lru.put(“c”, “dataC”); lru.get(“a”); #=> null # get lru.put(“a”, “dataA”); lru.put(“b”, “dataB”); lru.get(“a”); #=> “dataA” lru.put(“c”, “dataC”); lru.get(“b”); #=> null
  19. 19. LRU Cache ? ( …)
  20. 20. LRU Cache ? ( …)
  21. 21. LRU Cache ( …)

×