How to pass a ruby code test

         Robert Postill
Huh?
Mea Culpa
No names
http://github.com/C3/code_test
Habits
Junior
No Objects?
No tests 
Train Wrecks
thing.method.fiddle_result!.sort.fiddle_more
things.block {|yielded_thing|
    15 lines …
    possibly including block
    }.mangle
IO.risky_operation.immediately_bugger_about_with_result
Ignore the standard library
No Gemfile
No Rakefile
No documented thinking
Show me you thought about the
     problem. That’s it.
Journeyman
Object Design
It only runs on Windows
Make it complex to run

bin/app –fiddly-flag –J –see-
            output
Use select, collect, reject and
            inject
  Bonus fail points for all on one line
Give me an aesthetic sense
Make it easy to run
Design with objects
Have some basic tests
Show some environmental sensitivity
Craftsman
Don’t make a
gem/redistributable package
Extend object
Do something tricky like ASCII
       bit-twiddling
Rely on an implementation bug
Go crazy with symbol to proc
Don’t consider object side effects
Don’t use large scale code
organisation like modules
Wow me with:
a git repo
a thorough test suite
some description of your thinking
well organised files
How to get up the curve?
Books:
Clean code: A Handbook of Agile Software
Craftsmanship
The Little Schemer
Structure and Interpretation of Computer
Programs
Ruby Group
Contributing to projects
Questions?
                             Photo Credits
    Turtle - http://www.flickr.com/photos/hyakuhei/2234810476/
Witch Burning - http://www.flickr.com/photos/marsumic/4384582059/
                            PHP rock stars-
         http://www.flickr.com/photos/rbowen/2523308528/
                                Ninjas –
        http://www.flickr.com/photos/osakajock/121838967/

More Related Content

PPT
Pushing The Boundaries Of Continuous Integration
PDF
Why your java script framework choice doesn't matter!
PPTX
Making Software Management tools work for you - 2011 PHPBenelux Conference
PDF
Tampere Testing Days: Exploratory Testing an API
PDF
Web Application Testing. A Quick Guide to Testing and Security
ODP
Extjs Howto
PDF
Can you Kata?
PPTX
boots2nerd
Pushing The Boundaries Of Continuous Integration
Why your java script framework choice doesn't matter!
Making Software Management tools work for you - 2011 PHPBenelux Conference
Tampere Testing Days: Exploratory Testing an API
Web Application Testing. A Quick Guide to Testing and Security
Extjs Howto
Can you Kata?
boots2nerd

What's hot (14)

PPTX
AATC2016: Exploratory testing an API
PDF
Crafting a Ruby-on-Rails Course for Developers
PDF
Be a polyglot programmer
PPTX
Go lang - What is that thing?
PDF
Deliberate practice agile2012_alex_aitken
PPTX
Raising the bar 2, Using Puppet to install enterprise middleware applications
PDF
Staying excited after getting excited by Esta Prangel
PPTX
Everything you wanted to know about making an R package but were afraid to ask
PDF
Best practices-for-production-environments
PDF
Logging node.js global summit
PPT
Isotope
PDF
Ruby Tuesday Ottawa - Jan 24, 2012
PDF
From Journeyman to Master
PDF
Fix The Future - Accessibility Testing Using Wave
AATC2016: Exploratory testing an API
Crafting a Ruby-on-Rails Course for Developers
Be a polyglot programmer
Go lang - What is that thing?
Deliberate practice agile2012_alex_aitken
Raising the bar 2, Using Puppet to install enterprise middleware applications
Staying excited after getting excited by Esta Prangel
Everything you wanted to know about making an R package but were afraid to ask
Best practices-for-production-environments
Logging node.js global summit
Isotope
Ruby Tuesday Ottawa - Jan 24, 2012
From Journeyman to Master
Fix The Future - Accessibility Testing Using Wave
Ad

Viewers also liked (20)

PDF
Tech Success
PPT
Tugas Prof. Yusuf
PPT
iDay (Independence Day)
PPTX
Ilona fpra luncheon
PPT
Using video online to increase sales slideshare
ODP
Introduction to Indie GameDev India
PPT
Orientamenti di social media marketing
PDF
1.3 Process and Information Layout
PPTX
Lyddie: Unit2 lesson3
PPT
Comparison
PDF
Tips for grabbing and holding attention in online courses
PPS
FantáStic[1]
PPT
Vsemirnaja pautina
PPT
Qenlacecovalente
PPS
Kkka
PPT
Articulo final
PPT
Spikemilligan3
PPT
Turkey etwinning
PDF
Artist Showcase (2008)
Tech Success
Tugas Prof. Yusuf
iDay (Independence Day)
Ilona fpra luncheon
Using video online to increase sales slideshare
Introduction to Indie GameDev India
Orientamenti di social media marketing
1.3 Process and Information Layout
Lyddie: Unit2 lesson3
Comparison
Tips for grabbing and holding attention in online courses
FantáStic[1]
Vsemirnaja pautina
Qenlacecovalente
Kkka
Articulo final
Spikemilligan3
Turkey etwinning
Artist Showcase (2008)
Ad

Similar to How To Pass A Ruby Code Test (20)

ODP
The Professional Programmer
PDF
Culture And Aesthetic Revisited
PPT
WorkinOnTheRailsRoad
PPT
Workin ontherailsroad
PDF
PDF
ZIP
Meta Programming in Ruby - Code Camp 2010
PDF
Ruby Best Practices Increase Your Productivity Write Better Code 1st Edition ...
PPTX
Day 1 - Intro to Ruby
PDF
The Art of Refactoring
PPT
Ruby for C# Developers
PDF
Web Development With Ruby - From Simple To Complex
PPT
Intro To Ror
KEY
Ruby codebases in an entropic universe
PDF
Ruby1_full
PDF
Ruby1_full
PDF
IJTC%202009%20JRuby
PDF
IJTC%202009%20JRuby
PPTX
Clean code quotes - Citações e provocações
PPTX
Ruby for PHP developers
The Professional Programmer
Culture And Aesthetic Revisited
WorkinOnTheRailsRoad
Workin ontherailsroad
Meta Programming in Ruby - Code Camp 2010
Ruby Best Practices Increase Your Productivity Write Better Code 1st Edition ...
Day 1 - Intro to Ruby
The Art of Refactoring
Ruby for C# Developers
Web Development With Ruby - From Simple To Complex
Intro To Ror
Ruby codebases in an entropic universe
Ruby1_full
Ruby1_full
IJTC%202009%20JRuby
IJTC%202009%20JRuby
Clean code quotes - Citações e provocações
Ruby for PHP developers

Recently uploaded (20)

PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PDF
4 layer Arch & Reference Arch of IoT.pdf
PDF
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
PPTX
Module 1 Introduction to Web Programming .pptx
PPTX
MuleSoft-Compete-Deck for midddleware integrations
PPTX
Microsoft User Copilot Training Slide Deck
PDF
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
PDF
Electrocardiogram sequences data analytics and classification using unsupervi...
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PDF
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
PDF
SaaS reusability assessment using machine learning techniques
PDF
Connector Corner: Transform Unstructured Documents with Agentic Automation
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
EIS-Webinar-Regulated-Industries-2025-08.pdf
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PPTX
Internet of Everything -Basic concepts details
PPTX
Build automations faster and more reliably with UiPath ScreenPlay
PPTX
Training Program for knowledge in solar cell and solar industry
PDF
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
PDF
The AI Revolution in Customer Service - 2025
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
4 layer Arch & Reference Arch of IoT.pdf
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
Module 1 Introduction to Web Programming .pptx
MuleSoft-Compete-Deck for midddleware integrations
Microsoft User Copilot Training Slide Deck
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
Electrocardiogram sequences data analytics and classification using unsupervi...
Data Virtualization in Action: Scaling APIs and Apps with FME
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
SaaS reusability assessment using machine learning techniques
Connector Corner: Transform Unstructured Documents with Agentic Automation
Lung cancer patients survival prediction using outlier detection and optimize...
EIS-Webinar-Regulated-Industries-2025-08.pdf
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
Internet of Everything -Basic concepts details
Build automations faster and more reliably with UiPath ScreenPlay
Training Program for knowledge in solar cell and solar industry
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
The AI Revolution in Customer Service - 2025

How To Pass A Ruby Code Test