SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
GemsI made some
                                   Brent Snook
                  http://skillsmatter.com/podcast/ajax-ria/a-trio-of-gems


Friday, 16 October 2009
Brent who?
                           •   Agile weenie from Melbourne,
                               Australia

                           •   known to use Java when cornered

                           •   available for dev, coaching, children’s
                               parties

                           • fuglylogic.com
                           •             brentsnook


Friday, 16 October 2009
Numerouno
                     http://github.com/brentsnook/
                                numerouno

Friday, 16 October 2009
parse a number
                 require 'numerouno'

                 'five billion and forty two apples'.as_number
                   => 5000000042

                 '65'.as_number
                   => 65



                 require 'numerouno-parsing'

                 Numerouno.parse 'one hundred and ten things'

Friday, 16 October 2009
replace numbers

                  require 'numerouno'

                  'two bit varmint'.sub_numbers
                    => '2 bit varmint'




                  require 'numerouno-parsing'

                  Numerouno.replace '2 bit varmint'


Friday, 16 October 2009
Cucumber steps
               require 'numerouno'

               Then /the meaning of life is (.+)/ do |number|
                 42.should == number.as_number
               end




               Then the meaning of life is forty two
               Then the meaning of life is 42



Friday, 16 October 2009
Baldrick
                     http://github.com/brentsnook/
                                 baldrick

Friday, 16 October 2009
inspired by




Friday, 16 October 2009
cuppa.rb

          require 'rubygems'
          require 'baldrick_serve'

          feed_url = 'http://search.twitter.com/search.atom?q=cup+of'
          listen_to :feed, :at => feed_url

          on_hearing /cup of (.*?)[.,]/ do |beverage, order|
            puts "#{order[:who]} would like a cup of #{beverage}"
          end




Friday, 16 October 2009
orders
                === brent on commodore64.:43215 ===
                * [25-Feb-2009 10:17 PM] I’d like a
                cup of tea, maybe a biscuit too




Friday, 16 October 2009
tasks
                          kettle.fill
                          kettle.switch_on




Friday, 16 October 2009
cuppa.rb

          require 'rubygems'
          require 'baldrick_serve'

          feed_url = 'http://search.twitter.com/search.atom?q=cup+of'
          listen_to :feed, :at => feed_url

          on_hearing /cup of (.*?)[.,]/ do |beverage, order|
            puts "#{order[:who]} would like a cup of #{beverage}"
          end




Friday, 16 October 2009
why not use it for




Friday, 16 October 2009
Bumps
                     http://github.com/brentsnook/
                                  bumps

Friday, 16 October 2009
the bigger picture


                                      ?



Friday, 16 October 2009
alternatives
                 •        Remote Feature
                          http://github.com/mhennemeyer/remote_feature

                 •        Pickler
                          http://github.com/tpope/pickler

                 •        CucumberTFS
                          http://github.com/mscottford/cucumbertfs


Friday, 16 October 2009
configuration (env.rb)

                 require 'bumps'
                 Bumps.configure do
                   use_server 'http://localhost:1981'
                 end




Friday, 16 October 2009
next



                          ?
Friday, 16 October 2009
images
                          Cucumber - http://www.flickr.com/photos/vizzzual-dot-com/2738586453/

                          Steps - http://commons.wikimedia.org/wiki/File:Step_Ladder.jpg

                          Sinatra - http://www.flickr.com/photos/t/916884/

                          Barrel Hitch Instructions - http://commons.wikimedia.org/wiki/File:Barrel_hitch_instructions.png

                          Puzzle Piece - http://commons.wikimedia.org/wiki/File:Puzzle.svg

                          Cup of Tea - http://www.flickr.com/photos/psd/54314099

                          Lava Lamp - http://commons.wikimedia.org/wiki/File:Lavalampe.jpg

                          Nuclear power plant - http://commons.wikimedia.org/wiki/File:Nuclear_power.JPG

                          Arduino - http://commons.wikimedia.org/wiki/File:Arduino-0017-512x512px.png

                          Bumps Sign - http://commons.wikimedia.org/wiki/File:0bnsc-109_0.svg

                          Wave Logo - http://commons.wikimedia.org/wiki/File:Google_Wave_logo.png



Friday, 16 October 2009

Contenu connexe

En vedette (7)

História da Internet
História da InternetHistória da Internet
História da Internet
 
Bumps - Live Features with Google Wave and Cucumber
Bumps - Live Features with Google Wave and CucumberBumps - Live Features with Google Wave and Cucumber
Bumps - Live Features with Google Wave and Cucumber
 
Agile/UX: Making the Marriage Work
Agile/UX: Making the Marriage WorkAgile/UX: Making the Marriage Work
Agile/UX: Making the Marriage Work
 
We All Wii
We All WiiWe All Wii
We All Wii
 
Building the Right Thing
Building the Right ThingBuilding the Right Thing
Building the Right Thing
 
Microservices Without the Macrocost
Microservices Without the MacrocostMicroservices Without the Macrocost
Microservices Without the Macrocost
 
Powerpoint Presentació
Powerpoint PresentacióPowerpoint Presentació
Powerpoint Presentació
 

Similaire à Trio of Gems (6)

Social Media And Rural Internet Connectivity Projects At Conkers
Social Media And Rural Internet Connectivity Projects At ConkersSocial Media And Rural Internet Connectivity Projects At Conkers
Social Media And Rural Internet Connectivity Projects At Conkers
 
CHI: sessie 2
CHI: sessie 2CHI: sessie 2
CHI: sessie 2
 
Teaching CHI on facebook
Teaching CHI on facebookTeaching CHI on facebook
Teaching CHI on facebook
 
Twitter on Rails
Twitter on RailsTwitter on Rails
Twitter on Rails
 
Cooking an Omelette with Chef
Cooking an Omelette with ChefCooking an Omelette with Chef
Cooking an Omelette with Chef
 
1. Liferay Intro
1. Liferay Intro1. Liferay Intro
1. Liferay Intro
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Dernier (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 

Trio of Gems

  • 1. GemsI made some Brent Snook http://skillsmatter.com/podcast/ajax-ria/a-trio-of-gems Friday, 16 October 2009
  • 2. Brent who? • Agile weenie from Melbourne, Australia • known to use Java when cornered • available for dev, coaching, children’s parties • fuglylogic.com • brentsnook Friday, 16 October 2009
  • 3. Numerouno http://github.com/brentsnook/ numerouno Friday, 16 October 2009
  • 4. parse a number require 'numerouno' 'five billion and forty two apples'.as_number => 5000000042 '65'.as_number => 65 require 'numerouno-parsing' Numerouno.parse 'one hundred and ten things' Friday, 16 October 2009
  • 5. replace numbers require 'numerouno' 'two bit varmint'.sub_numbers => '2 bit varmint' require 'numerouno-parsing' Numerouno.replace '2 bit varmint' Friday, 16 October 2009
  • 6. Cucumber steps require 'numerouno' Then /the meaning of life is (.+)/ do |number| 42.should == number.as_number end Then the meaning of life is forty two Then the meaning of life is 42 Friday, 16 October 2009
  • 7. Baldrick http://github.com/brentsnook/ baldrick Friday, 16 October 2009
  • 8. inspired by Friday, 16 October 2009
  • 9. cuppa.rb require 'rubygems' require 'baldrick_serve' feed_url = 'http://search.twitter.com/search.atom?q=cup+of' listen_to :feed, :at => feed_url on_hearing /cup of (.*?)[.,]/ do |beverage, order| puts "#{order[:who]} would like a cup of #{beverage}" end Friday, 16 October 2009
  • 10. orders === brent on commodore64.:43215 === * [25-Feb-2009 10:17 PM] I’d like a cup of tea, maybe a biscuit too Friday, 16 October 2009
  • 11. tasks kettle.fill kettle.switch_on Friday, 16 October 2009
  • 12. cuppa.rb require 'rubygems' require 'baldrick_serve' feed_url = 'http://search.twitter.com/search.atom?q=cup+of' listen_to :feed, :at => feed_url on_hearing /cup of (.*?)[.,]/ do |beverage, order| puts "#{order[:who]} would like a cup of #{beverage}" end Friday, 16 October 2009
  • 13. why not use it for Friday, 16 October 2009
  • 14. Bumps http://github.com/brentsnook/ bumps Friday, 16 October 2009
  • 15. the bigger picture ? Friday, 16 October 2009
  • 16. alternatives • Remote Feature http://github.com/mhennemeyer/remote_feature • Pickler http://github.com/tpope/pickler • CucumberTFS http://github.com/mscottford/cucumbertfs Friday, 16 October 2009
  • 17. configuration (env.rb) require 'bumps' Bumps.configure do use_server 'http://localhost:1981' end Friday, 16 October 2009
  • 18. next ? Friday, 16 October 2009
  • 19. images Cucumber - http://www.flickr.com/photos/vizzzual-dot-com/2738586453/ Steps - http://commons.wikimedia.org/wiki/File:Step_Ladder.jpg Sinatra - http://www.flickr.com/photos/t/916884/ Barrel Hitch Instructions - http://commons.wikimedia.org/wiki/File:Barrel_hitch_instructions.png Puzzle Piece - http://commons.wikimedia.org/wiki/File:Puzzle.svg Cup of Tea - http://www.flickr.com/photos/psd/54314099 Lava Lamp - http://commons.wikimedia.org/wiki/File:Lavalampe.jpg Nuclear power plant - http://commons.wikimedia.org/wiki/File:Nuclear_power.JPG Arduino - http://commons.wikimedia.org/wiki/File:Arduino-0017-512x512px.png Bumps Sign - http://commons.wikimedia.org/wiki/File:0bnsc-109_0.svg Wave Logo - http://commons.wikimedia.org/wiki/File:Google_Wave_logo.png Friday, 16 October 2009