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.

OpenWest Conference at UVU, Ruby on Rails and BDD

303 views

Published on

Rails, programming

Published in: Technology
  • Login to see the comments

  • Be the first to like this

OpenWest Conference at UVU, Ruby on Rails and BDD

  1. 1. Ruby on RailsAutomated TestingYoure doing it wrong
  2. 2. Ruby on RailsAutomated TestingYoure doing it wrong...maybe
  3. 3. Ruby on Rails:
  4. 4. [ ruby.about.com ]Ruby on Rails:Model-View-Controller frameworkfor creatingdatabase-driven websites in Ruby
  5. 5. Ruby on Rails:[ rubyonrails.org ]
  6. 6. srsly, though,How do I go about learningRuby on Rails??
  7. 7. its a gameyoure doingit right!
  8. 8. free book
  9. 9. free book
  10. 10. excellent video series
  11. 11. excellent video series (not free)
  12. 12. 3 more chancesto learn moreabout ruby
  13. 13. challengingchallengingRuby on Rails:…… if youre doing it right.if youre doing it right.[ my definition ]
  14. 14. excitingexcitingRuby on Rails:…… if youre doing it right.if youre doing it right.[ my definition ]
  15. 15. ffuunn…… if youre doing it right.if youre doing it right.Ruby on Rails:[ my definition ]
  16. 16. a billion other peoplea billion other peoplejust like youjust like youwho are happy to helpwho are happy to help(thats why FOSS is(thats why FOSS is soosoo cool!)cool!)Ruby on Rails:[ my definition ]
  17. 17. [ my definition ]part of the FOSSpart of the FOSScommunity! So if youre learningcommunity! So if youre learningfrom others, and teaching others,from others, and teaching others,...youre doing it right!...youre doing it right!yyoouu::
  18. 18. ffuunnprogramming is
  19. 19. ffuunnmaking progressmaking progress isis ffuunn[ my definition ]solving problemssolving problems isis ffuunnmaking people happymaking people happy isis ffuunn
  20. 20. nono ffuunnbeing stuckbeing stuck isis nono funfun[ my definition ]having no problems to solvehaving no problems to solve isis nono funfunnot knowing what people wantnot knowing what people want isis nono funfun
  21. 21. automatedtesting
  22. 22. +
  23. 23. BDD
  24. 24. =-) cool
  25. 25. flow
  26. 26. Csíkszentmihályi
  27. 27. Mr.PositivePsychology=
  28. 28. our brains canprocess about 110bits each secondconversingrequires about 60bits each second
  29. 29. 110bitswe attain fl ow when faced withwe attain fl ow when faced withclear and challenging goalsclear and challenging goalsthat stretch our abilitiesthat stretch our abilitieswithout overtaxing themwithout overtaxing them
  30. 30. the secrettohappinessflow
  31. 31. 110bitsClear goalsthat, whilechallenging,are stillattainable.
  32. 32. 110bitsStrongconcentrationand focusedattention.
  33. 33. 110bitsThe activityis intrinsicallyrewarding.
  34. 34. 110bitsFeelings ofserenity; a lossof feelings ofself-consciousness.
  35. 35. 110bitsTimelessness...so focused onthe present thatyou lose track oftime passing.
  36. 36. 110bitsImmediatefeedback.
  37. 37. 110bitsKnowing the taskis doablea balancebetween skill leveland challenge
  38. 38. 110bitsFeelings ofpersonalcontrol overthe situationand theoutcome.
  39. 39. 110bitsLack ofawarenessof physicalneeds.
  40. 40. 110bitsCompletefocus ontheactivityitself.
  41. 41. 110bits
  42. 42. 110bitsis not very much
  43. 43. 110bitsis not very muchespecially when youre talking about
  44. 44. 110bitsis not very muchespecially when youre talking abouta complex task
  45. 45. bitsis not very muchespecially when youre talking abouta complex tasklike programming
  46. 46. 110 bits[ Sol Tanguay, Imarklab ]Separate thinking andexecution to executefaster and think better.
  47. 47. 110 bitsBDD:Behavior-DrivenDevelopment
  48. 48. 110 bits
  49. 49. Describe behavior in plain text
  50. 50. 110 bits[ Sol Tanguay, Imarklab ]Separate thinking andexecution to executefaster and think better.
  51. 51. Describe behavior in plain textWed like for users to be able todeposit money in their bank accountand have the balance reflect thatdeposit immediately.
  52. 52. Unfettered thinkingDescribe behavior in plain textWed like for users to be able todeposit money in their bank accountand have the balance reflect thatdeposit immediately.
  53. 53. Translate to Cucumber speak(minimal) fancy syntax
  54. 54. Cucumber features can be understoodby various stakeholders (not just developers)
  55. 55. Cucumber features can beby your project managerwrittenrunby testers or QA
  56. 56. Cucumber features can beby your project managerwrittenrunby testers or QA...youre doing itright
  57. 57. Cucumber features can berunby testers or QA...(as well as by developers)
  58. 58. Cucumber features can berunby testers or QA= automated testing
  59. 59. SO, we have our cucumber feature...Whats next?
  60. 60. Get your coding on!
  61. 61. Not yet.
  62. 62. Cucumber wants to help... (so let it)Seeing red, yellow is important
  63. 63. Youre doing it wrong ifyou dont see red first
  64. 64. greenis the newred
  65. 65. Seeing red is important: rspecThis test has an error, and may never fail.
  66. 66. This test may never fail. rspecTo know its good, you have to see it bad
  67. 67. This test can fail. rspecRun this, see red! Youre doing it right!
  68. 68. Cucumber features can berunyour tests (cucumber, rspec)before you code
  69. 69. seeing redis good
  70. 70. its a gameYour objective:go red go green...
  71. 71. its a gamefinish green...
  72. 72. remember...
  73. 73. flow?
  74. 74. 110bitsClear goalsthat, whilechallenging,are stillattainable.
  75. 75. CucumberOnce youve written yourfeatures, cucumber remindsyou of your goals again (andagain).
  76. 76. 110bitsStrongconcentrationand focusedattention.
  77. 77. Cucumber110 bits... 50 too many?Distractions vying for yourattention? Run cucumber.(bookmark that amazing videofor later)
  78. 78. 110bitsFeelings ofserenity; a lossof feelings ofself-consciousness.
  79. 79. Ask for space (time) withoutinterruptions so you canconcentrate and get thingsdone.`
  80. 80. 110bitsImmediatefeedback.
  81. 81. feedback immediately.Automatedtestingtools
  82. 82. 110bitswe attain fl ow when faced withwe attain fl ow when faced withclear and challenging goalsclear and challenging goalsthat stretch our abilitiesthat stretch our abilitieswithout overtaxing themwithout overtaxing them
  83. 83. 110bitsbehavior-driven developmentbehavior-driven developmentpresentspresentsclear and challenging goalsclear and challenging goalsin byte-sized pieces.in byte-sized pieces.
  84. 84. the secrettohappinessflow
  85. 85. 110bitsflow
  86. 86. where all this stuff came fromwhere all this stuff came fromafrica photoshttp://publicphoto.org/Going on a Testing Anti-Pattern Safari, AjaHammerly, MWRC 2013http://confreaks.com/videos/2345-mwrc2013-going-on-a-testing-anti-pattern-safariimagesTexture Backgrounds, Wright Brothers,jet, photos, artwork, cartoons, abstract arthttp://www.thepublicdomain.net/Csíkszentmihályi photohttps://commons.wikimedia.org/wiki/Main_Pagebullhttp://www.publicdomainpictures.net/view-image.php?image=38586&picture=bull-5Finding Flow, CsíkszentmihályiCsíkszentmihályihttps://www.ted.com/talks/mihaly_csikszentmihalyi_on_flow.htmlquote: flowhttp://psychology.about.com/od/PositivePsychology/a/flow.htm

×