SlideShare una empresa de Scribd logo
1 de 19
Descargar para leer sin conexión
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

Más contenido relacionado

Destacado

História da Internet
História da InternetHistória da Internet
História da InternetBurnoutXP
 
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 Cucumberfuglylogic
 
Agile/UX: Making the Marriage Work
Agile/UX: Making the Marriage WorkAgile/UX: Making the Marriage Work
Agile/UX: Making the Marriage Workfuglylogic
 
Building the Right Thing
Building the Right ThingBuilding the Right Thing
Building the Right Thingfuglylogic
 
Microservices Without the Macrocost
Microservices Without the MacrocostMicroservices Without the Macrocost
Microservices Without the Macrocostfuglylogic
 
Powerpoint Presentació
Powerpoint PresentacióPowerpoint Presentació
Powerpoint Presentacióa8930018
 

Destacado (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ó
 

Similar a Trio of Gems

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 ConkersProjects Webmedia
 
Teaching CHI on facebook
Teaching CHI on facebookTeaching CHI on facebook
Teaching CHI on facebookErik Duval
 
Cooking an Omelette with Chef
Cooking an Omelette with ChefCooking an Omelette with Chef
Cooking an Omelette with Chefctaintor
 

Similar a 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
 

Último

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
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 productivityPrincipled Technologies
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
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...apidays
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 

Último (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
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...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 

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