SlideShare a Scribd company logo
1 of 64
Download to read offline
Ruby Can Haz
                         EVERYONE!
                          Mikel Lindsaar
                           @raasdnil




Friday, 22 April 2011
Working in Rails & Ruby for 5+ Years

    Author of Mail, maintain TMail

    Rails Committer

    Entrepreneur

    http://stillalive.com/

    http://rubyx.com/




Friday, 22 April 2011
Example of StillAlive.com
                          Full stack production
                        monitoring for your app




Friday, 22 April 2011
Ruby Wants You




Friday, 22 April 2011
MINSWAN
                        Matz is nice, so we are nice




Friday, 22 April 2011
Scratch Your Own Itch




Friday, 22 April 2011
How do I start?

                            Patch a library


                           Write a library




Friday, 22 April 2011
Patch a Library




Friday, 22 April 2011
6 Steps to Patch
                              Fork on GitHub
                                    Clone
                           Write a failing test case
                        Run the tests { Fix the code }
                              Push to your fork
                             Send a pull request

Friday, 22 April 2011
Fork




Friday, 22 April 2011
Fork




Friday, 22 April 2011
Clone




Friday, 22 April 2011
Clone




Friday, 22 April 2011
Write a Failing Test Case




Friday, 22 April 2011
Write a Failing Test Case




Friday, 22 April 2011
Fix the Code




Friday, 22 April 2011
Fix the Code




Friday, 22 April 2011
Run the tests

                                Multiple Rubies?


                        Make it greener than you started




Friday, 22 April 2011
Push to your fork

                            Detailed commit message


                        Don’t push changes to the version




Friday, 22 April 2011
Send a Pull Request




Friday, 22 April 2011
Send a Pull Request




Friday, 22 April 2011
Profit




Friday, 22 April 2011
Write a Library




Friday, 22 April 2011
README Driven Dev




Friday, 22 April 2011
README Driven Dev




Friday, 22 April 2011
README Driven Dev

                                 tom.preston-werner.com

                         Google “README Driven Development”

                        2010/08/23/readme-driven-development.html




Friday, 22 April 2011
Write your Wish List




Friday, 22 April 2011
Write your Wish List




Friday, 22 April 2011
Friday, 22 April 2011
Friday, 22 April 2011
Research as Needed




Friday, 22 April 2011
Research as Needed


                                         RFCs




Friday, 22 April 2011
Research as Needed


                                         RFCs




Friday, 22 April 2011
Setup Your Gem

                        Read http://docs.rubygems.org/read/book/7

                           Create a simple directory structure

                                  Get your tests failing




Friday, 22 April 2011
Simple Gem Creation
                              You don’t need no tools

                          http://github.com/rubyx/nugget

                          Builds a gem skeleton with ruby

           $ ruby -s <(curl -s https://github.com/rubyx/nugget/raw/master/install.rb)




Friday, 22 April 2011
More on Nugget
                             http://github.com/rubyx/nugget

                        Need to do lots of things to get started

                        Lowers barrier to entry to release a gem

                5 minutes => Nothing to published on rubygems


Friday, 22 April 2011
Nugget File Structure




Friday, 22 April 2011
Nugget Patches Wanted
                        http://github.com/rubyx/nugget

                            Add test unit support

                             Rails gem support?

                                Make it a gem


Friday, 22 April 2011
Test First Development
                        I use RSpec because I am lazy and forget stuff

                               EVERYTHING in Mail is BDD

                                     Regressions Caught

                                      Seriously - do it



Friday, 22 April 2011
Testing for Libraries
                                   Start Simple

                          Comments in Spec Files are OK

                              Use Custom Matchers

                           Break Down Your Spec Files

                              Spec in Multiple Rubies


Friday, 22 April 2011
Start Somewhere




Friday, 22 April 2011
Start Somewhere




Friday, 22 April 2011
Start Simple




Friday, 22 April 2011
Start Simple




Friday, 22 April 2011
Comments are OK




Friday, 22 April 2011
Comments are OK




Friday, 22 April 2011
Use Custom Matchers
                               when appropriate




Friday, 22 April 2011
Use Custom Matchers
                               when appropriate




Friday, 22 April 2011
Use Custom Matchers
                               when appropriate




Friday, 22 April 2011
Use Custom Matchers
                               when appropriate




Friday, 22 April 2011
Break Down Spec Files




Friday, 22 April 2011
Break Down Spec Files
                                  26 Sub Directories

                                  79 Ruby Spec Files

                                  73 Edge Case Emails

                                  Many Many Lines of Specs

                                  1,289 examples

                                  No Failures :)
Friday, 22 April 2011
Spec in Multiple Rubies
                        Have to be a good Ruby Citizen

                               MRI - 1.8.7, 1.9.2

                                    JRuby

                                     REE

                                   Rubinius

Friday, 22 April 2011
Devil is in the Detail




Friday, 22 April 2011
Devil is in the Detail
                               And Thats It!

                               Simple Hey?




Friday, 22 April 2011
Devil is in the Detail
           Header Errors                     Legacy Emails
      Parsers     rfc822      Delivery Agents
                       And Thats It!           SMTP
   Body Decoding
          SPAM       PGP Signing       POP3 File Types
    Mbox               Simple Hey?              Network
               IMAP           Language Support
Sendmail Delivery Bad Emails              Encoding
                             Edge Cases
  Pattern Matching
                    OMGMIME! Decoding Attachments
     Interceptors
                         File IO    Domain Key Emails
       Observers                  Status Reports
          Inline Attachments
Friday, 22 April 2011
Listen to your Users




Friday, 22 April 2011
Listen to your Users
                              (but not blindly)




Friday, 22 April 2011
Listen to your Users
                              (but not blindly)




Friday, 22 April 2011
Have Good Specs




Friday, 22 April 2011
Encourage Participation
                                     MIT License

                           Clear “How to Test” Instructions

                        Clear “How to Contribute” Instructions

                                   Modular Design

                               Mail has 53 contributors


Friday, 22 April 2011
Release Often




Friday, 22 April 2011
Questions?
                                                   Mikel Lindsaar
                                                       @raasdnil

                                   RubyX.com                             StillAlive.com

                                                   We are hiring!


                        I can fix thiz: http://netherregionoftheearthii.blogspot.com/2010_04_18_archive.html
                                           Video Cat: http://www.coolfunnycats.com/?p=1954
                                   Repair Cat: http://www.mike2.com/category/animals/cats/page/4/
                                              All Other Cats: http://icanhascheezburger.com/

Friday, 22 April 2011
Friday, 22 April 2011

More Related Content

Similar to Ruby can haz Everyone

Mozilla: Continuous Deploment on SUMO
Mozilla: Continuous Deploment on SUMOMozilla: Continuous Deploment on SUMO
Mozilla: Continuous Deploment on SUMOMatt Brandt
 
ExpOn 2011 - Diego Monteiro - Níveis de Maturidade nas Mídias Sociais
ExpOn 2011 - Diego Monteiro - Níveis de Maturidade nas Mídias SociaisExpOn 2011 - Diego Monteiro - Níveis de Maturidade nas Mídias Sociais
ExpOn 2011 - Diego Monteiro - Níveis de Maturidade nas Mídias SociaisDOGSCAMP Summit
 
Gradle - The hackable build-tool
Gradle - The hackable build-toolGradle - The hackable build-tool
Gradle - The hackable build-toolLeonard Axelsson
 
Form project why is the sky blue and other questions
Form project  why is the sky blue and other questionsForm project  why is the sky blue and other questions
Form project why is the sky blue and other questionsaakashm
 
the role of the future academic library...
the role of the future academic library...the role of the future academic library...
the role of the future academic library...Penny Hagen
 
20110721 pankaku us
20110721 pankaku us20110721 pankaku us
20110721 pankaku us01Booster
 
Doctrine in the Real World
Doctrine in the Real WorldDoctrine in the Real World
Doctrine in the Real WorldJonathan Wage
 
The Productive Researcher's Technology Toolbox
The Productive Researcher's Technology ToolboxThe Productive Researcher's Technology Toolbox
The Productive Researcher's Technology ToolboxStratepedia Presentations
 
Giving goodpresentations
Giving goodpresentationsGiving goodpresentations
Giving goodpresentationsmskmoorthy
 
Selenium Page Objects101
Selenium Page Objects101Selenium Page Objects101
Selenium Page Objects101Adam Goucher
 
PyconUA - How to build ERP application having fun?
PyconUA - How to build ERP application having fun?PyconUA - How to build ERP application having fun?
PyconUA - How to build ERP application having fun?Andrew Mleczko
 
Can Metadata Keep Libraries Relevant?
Can Metadata Keep Libraries Relevant?Can Metadata Keep Libraries Relevant?
Can Metadata Keep Libraries Relevant?Richard Wallis
 
Conquistando el Servidor con Node.JS
Conquistando el Servidor con Node.JSConquistando el Servidor con Node.JS
Conquistando el Servidor con Node.JSCaridy Patino
 
Clouds against the Floods (RubyConfBR2011)
Clouds against the Floods (RubyConfBR2011) Clouds against the Floods (RubyConfBR2011)
Clouds against the Floods (RubyConfBR2011) Leonardo Borges
 

Similar to Ruby can haz Everyone (20)

clrh58
clrh58clrh58
clrh58
 
Mozilla: Continuous Deploment on SUMO
Mozilla: Continuous Deploment on SUMOMozilla: Continuous Deploment on SUMO
Mozilla: Continuous Deploment on SUMO
 
ExpOn 2011 - Diego Monteiro - Níveis de Maturidade nas Mídias Sociais
ExpOn 2011 - Diego Monteiro - Níveis de Maturidade nas Mídias SociaisExpOn 2011 - Diego Monteiro - Níveis de Maturidade nas Mídias Sociais
ExpOn 2011 - Diego Monteiro - Níveis de Maturidade nas Mídias Sociais
 
Gradle - The hackable build-tool
Gradle - The hackable build-toolGradle - The hackable build-tool
Gradle - The hackable build-tool
 
Form project why is the sky blue and other questions
Form project  why is the sky blue and other questionsForm project  why is the sky blue and other questions
Form project why is the sky blue and other questions
 
Jono mozilla-talk
Jono mozilla-talkJono mozilla-talk
Jono mozilla-talk
 
the role of the future academic library...
the role of the future academic library...the role of the future academic library...
the role of the future academic library...
 
Namesmatter
NamesmatterNamesmatter
Namesmatter
 
20110721 pankaku us
20110721 pankaku us20110721 pankaku us
20110721 pankaku us
 
clrh56
clrh56clrh56
clrh56
 
Doctrine in the Real World
Doctrine in the Real WorldDoctrine in the Real World
Doctrine in the Real World
 
The Productive Researcher's Technology Toolbox
The Productive Researcher's Technology ToolboxThe Productive Researcher's Technology Toolbox
The Productive Researcher's Technology Toolbox
 
Giving goodpresentations
Giving goodpresentationsGiving goodpresentations
Giving goodpresentations
 
Selenium Page Objects101
Selenium Page Objects101Selenium Page Objects101
Selenium Page Objects101
 
PyconUA - How to build ERP application having fun?
PyconUA - How to build ERP application having fun?PyconUA - How to build ERP application having fun?
PyconUA - How to build ERP application having fun?
 
Distribute the workload, PHPTek, Amsterdam, 2011
Distribute the workload, PHPTek, Amsterdam, 2011Distribute the workload, PHPTek, Amsterdam, 2011
Distribute the workload, PHPTek, Amsterdam, 2011
 
Can Metadata Keep Libraries Relevant?
Can Metadata Keep Libraries Relevant?Can Metadata Keep Libraries Relevant?
Can Metadata Keep Libraries Relevant?
 
Caridy patino - node-js
Caridy patino - node-jsCaridy patino - node-js
Caridy patino - node-js
 
Conquistando el Servidor con Node.JS
Conquistando el Servidor con Node.JSConquistando el Servidor con Node.JS
Conquistando el Servidor con Node.JS
 
Clouds against the Floods (RubyConfBR2011)
Clouds against the Floods (RubyConfBR2011) Clouds against the Floods (RubyConfBR2011)
Clouds against the Floods (RubyConfBR2011)
 

Recently uploaded

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 

Recently uploaded (20)

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 

Ruby can haz Everyone