Download
slide1 n.
Skip this Video
Loading SlideShow in 5 Seconds..
FizzBuzz Trek PowerPoint Presentation
Download Presentation
FizzBuzz Trek

FizzBuzz Trek

1708 Vues Download Presentation
Télécharger la présentation

FizzBuzz Trek

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. FizzBuzz Trek @KevlinHenney

  2. Art. Craft. Engineering. Science. These are the swirling muses of design patterns. Art and science are stories; craft and engineering are actions. Wayne Cool

  3. Art is useless because its aim is simply to create a mood. It is not meant to instruct, or to influence action in any way. It is superbly sterile. Oscar Wilde

  4. Skill without imagination is craftsmanship and gives us many useful objects such as wickerwork picnic baskets. Imagination without skill gives us modern art. Tom Stoppard

  5. The ideal world of Vermeer's little lacemaker Peter Dormer

  6. Craft and craft-related activities are pleasurable, and the pleasure derives from doing something well that you know well how to do. The criteria for doing the job well and judging whether the job has been well done are known in advance.

  7. Fizz buzz is a group word game for children to teach them about division. http://en.wikipedia.org/wiki/Fizz_buzz

  8. Players generally sit in a circle. The player designated to go first says the number "1", and each player thenceforth counts one number in turn. However, any number divisible by three is replaced by the word fizz and any divisible by five by the word buzz. Numbers divisible by both become fizz buzz. A player who hesitates or makes a mistake is eliminated from the game. http://en.wikipedia.org/wiki/Fizz_buzz

  9. Players generally sit in a circle. The player designated to go first says the number "1", and each player thenceforth counts one number in turn. However, any number divisible by three is replaced by the word fizz and any divisible by five by the word buzz. Numbers divisible by both become fizz buzz. A player who hesitates or makes a mistake is eliminated from the game. http://en.wikipedia.org/wiki/Fizz_buzz

  10. Players generally sit in a circle. The player designated to go first says the number "1", and each player thenceforth counts one number in turn. However, any number divisible by three is replaced by the word fizz and any divisible by five by the word buzz. Numbers divisible by both become fizz buzz. A player who hesitates or makes a mistake is eliminated from the game. http://en.wikipedia.org/wiki/Fizz_buzz

  11. Adults may play Fizz buzz as a drinking game, where making a mistake leads to the player having to make a drinking-related forfeit. [citation needed] http://en.wikipedia.org/wiki/Fizz_buzz

  12. Fizz buzz has been used as an interview screening device for computer programmers. http://en.wikipedia.org/wiki/Fizz_buzz

  13. Creating a list of the first 100 Fizz buzz numbers is a trivial problem for any would-be computer programmer. http://en.wikipedia.org/wiki/Fizz_buzz

  14. FizzBuzz was invented to avoid the awkwardness of realising that nobody in the room can binary search an array. https://twitter.com/richardadalton/status/591534529086693376

  15. FizzBuzz is also a popular Kata in the software craftsmanship movement. http://en.wikipedia.org/wiki/Fizz_buzz

  16. http://en.wikipedia.org/wiki/Fizz_buzz

  17. enterprise, noun  a project or undertaking that is especially bold, complicated or arduous  readiness to engage in undertakings of difficulty, risk, danger or daring  a design of which the execution is attempted  a commercial or industrial undertaking  a firm, company or business  a unit of economic organisation or activity Concise Oxford English Dictionary ∙ Oxford English Dictionary ∙ Merriam-Webster's Collegiate Dictionary

  18. enterprise, noun  a project or undertaking that is especially bold, complicated or arduous  readiness to engage in undertakings of difficulty, risk, danger or daring  a design of which the execution is attempted  a commercial or industrial undertaking  a firm, company or business  a unit of economic organisation or activity Concise Oxford English Dictionary ∙ Oxford English Dictionary ∙ Merriam-Webster's Collegiate Dictionary

  19. https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition

  20. https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition

  21. Architecture is the decisions that you wish you could get right early in a project, but that you are not necessarily more likely to get them right than any other. Ralph Johnson

  22. Architecture is the art of how to waste space. Philip Johnson

  23. https://twitter.com/KevlinHenney/status/476962681636020224

  24. https://twitter.com/KevlinHenney/status/476963022549032960

  25. http://cliffle.com/esoterica/hq9plus.html

  26. T123SE60S#S*S&S@SP100SP10SP5SP3S P1SQSPSBSFSISUSZSPSP1SPSPSO34SO3 5SO36ST49SA50SA41ST50SA50SU51SS4 0SE62SA40SS41SE73ST51SO34SO45SO4 6SO48SO48ST49SA50SS39SE75SA39SS4 1SE86ST51SO34SO44SO47SO48SO48ST4 9SA51SG53SO33ST49SA50SS37SA41SG9 8SZSO43SO43ST49ST52SA50SS38SG109 ST51SA52SA41ST52SA51SE101ST49SA5 2SS41SG117SA41SL512ST52SO52ST49S A51SL512ST52SO52SE53SXS Olve Maudal http://www.pvv.org/~oma/FizzBuzz_EDSAC_ACCU_Apr2015.pdf

  27. http://www.adampetersen.se/articles/fizzbuzz.htm

  28. http://www.adampetersen.se/articles/fizzbuzz.htm

  29. ... template < template<typename,typename,typename> class RendererT, typename CameraT, typename ObjectsT, typename LightsT > struct scene { template <unsigned int x, unsigned int width, unsigned int y, unsigned int height> struct kernel { public: typedef scalar::sub< scalar::div<scalar::from_int<x+config::virtual_x>, scalar::from_int<config::virtual_width>>, scalar::c0_5 > u; typedef scalar::neg<scalar::sub< scalar::div<scalar::from_int<y+config::virtual_y>, scalar::from_int<config::virtual_height>>, scalar::c0_5 >> v; typedef typename CameraT::template generate<u,v>::type ray; typedef typename RendererT< CameraT, ObjectsT, LightsT >::template raytrace<ray,15> raytrace; public: typedef typename color::rgbf_to_rgb<typename raytrace::color> color; }; }; ... https://github.com/phresnel/metatrace

  30. enum class fizzbuzzed { fizz = -2, buzz = -1, fizzbuzz = 0, first = 1, last = 100 }; constexpr fizzbuzzed fizzbuzz(int n) { return n % 15 == 0 ? fizzbuzzed::fizzbuzz : n % 3 == 0 ? fizzbuzzed::fizz : n % 5 == 0 ? fizzbuzzed::buzz : fizzbuzzed(n); }

  31. char * fizzbuzz(int n) { char * result = (char *) malloc(20); result[0] = '\0'; if(n % 3 == 0) { strcat(result, "fizz"); } if(n % 5 == 0) { strcat(result, "buzz"); } if(result[0] == '\0') { sprintf(result, "%i", n); } return result; }

  32. char * fizzbuzz(int n) { char * result = (char *) malloc(20); result[0] = '\0'; if(n % 3 == 0) strcat(result, "fizz"); if(n % 5 == 0) strcat(result, "buzz"); if(result[0] == '\0') sprintf(result, "%i", n); return result; }

  33. char * fizzbuzz(int n) { char * result = (char *) malloc(20); result[0] = '\0'; strcat(result, n % 3 == 0 ? "fizz" : ""); strcat(result, n % 5 == 0 ? "buzz" : ""); if(result[0] == '\0') sprintf(result, "%i", n); return result; }

  34. char * fizzbuzz(int n) { char * result = (char *) malloc(20); strcpy(result, n % 3 == 0 ? "fizz" : ""); strcat(result, n % 5 == 0 ? "buzz" : ""); if(result[0] == '\0') sprintf(result, "%i", n); return result; }