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 Wrecksthing.method.fiddle_result!.sort.fiddle_morethings.block {|yielded_thing|    15 lines …    possibly including ...
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 runbin/app –fiddly-flag –J –see-            output
Use select, collect, reject and            inject  Bonus fail points for all on one line
Give me an aesthetic senseMake it easy to runDesign with objectsHave some basic testsShow some environmental sensitivity
Craftsman
Don’t make agem/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 codeorganisation like modules
Wow me with:a git repoa thorough test suitesome description of your thinkingwell organised files
How to get up the curve?Books:Clean code: A Handbook of Agile SoftwareCraftsmanshipThe Little SchemerStructure and Interpr...
Questions?                             Photo Credits    Turtle - http://www.flickr.com/photos/hyakuhei/2234810476/Witch Bu...
Upcoming SlideShare
Loading in...5
×

How To Pass A Ruby Code Test

732

Published on

After throwing down a few code tests I've started to have some ideas about what I want to see in a code test submission.

Published in: Technology, Sports
2 Comments
0 Likes
Statistics
Notes
  • Totally agree, asking about the language quirks is worthless. Either you like developing in a language or you don't. Most people will clearly flag that in any conversation you have with them. In conversation it's much more the team thing, can you work with us? That's what you need to know.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • This popped up today: What not to ask technical people in interviews

    http://www.fusioncube.net/index.php/what-not-to-ask-technical-people-in-interviews
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total Views
732
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
2
Likes
0
Embeds 0
No embeds

No notes for slide

How To Pass A Ruby Code Test

  1. 1. How to pass a ruby code test Robert Postill
  2. 2. Huh?
  3. 3. Mea Culpa
  4. 4. No names
  5. 5. http://github.com/C3/code_test
  6. 6. Habits
  7. 7. Junior
  8. 8. No Objects?
  9. 9. No tests 
  10. 10. Train Wrecksthing.method.fiddle_result!.sort.fiddle_morethings.block {|yielded_thing| 15 lines … possibly including block }.mangleIO.risky_operation.immediately_bugger_about_with_result
  11. 11. Ignore the standard library
  12. 12. No Gemfile
  13. 13. No Rakefile
  14. 14. No documented thinking
  15. 15. Show me you thought about the problem. That’s it.
  16. 16. Journeyman
  17. 17. Object Design
  18. 18. It only runs on Windows
  19. 19. Make it complex to runbin/app –fiddly-flag –J –see- output
  20. 20. Use select, collect, reject and inject Bonus fail points for all on one line
  21. 21. Give me an aesthetic senseMake it easy to runDesign with objectsHave some basic testsShow some environmental sensitivity
  22. 22. Craftsman
  23. 23. Don’t make agem/redistributable package
  24. 24. Extend object
  25. 25. Do something tricky like ASCII bit-twiddling
  26. 26. Rely on an implementation bug
  27. 27. Go crazy with symbol to proc
  28. 28. Don’t consider object side effects
  29. 29. Don’t use large scale codeorganisation like modules
  30. 30. Wow me with:a git repoa thorough test suitesome description of your thinkingwell organised files
  31. 31. How to get up the curve?Books:Clean code: A Handbook of Agile SoftwareCraftsmanshipThe Little SchemerStructure and Interpretation of ComputerProgramsRuby GroupContributing to projects
  32. 32. 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/
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×