Irb Tips and Tricks

  • 2,204 views
Uploaded on

Quick lightning talk on some cool things you can do in IRB and the Rails Console. There's more in there than you think!

Quick lightning talk on some cool things you can do in IRB and the Rails Console. There's more in there than you think!

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,204
On Slideshare
0
From Embeds
0
Number of Embeds
3

Actions

Shares
Downloads
5
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Transcript

  • 1. Irb Tips and Tricks John McCaffrey Freelance Consultant @J_McCaffrey RailsPerformance.net
  • 2. Here we go!• Irb is awesome• Common Usage patterns• Customizing Irb• Rails Console• References
  • 3. In case I don’t finish...• IRB is extremely powerful and Customizable• A useful tool in your toolkit• Worth finding ways to improve your usage• Ask your friends, share your ideas• ....some compatibility issues in Rails 3
  • 4. Irb is Awesome! http://tryruby.org/
  • 5. IRB 101• printing, dates, calculations• object inspector• requiring files• file scripting
  • 6. Tweak it• irb console settings• custom methods (I needed logging and acts_as_versioned inspection)• vim• irb subsession
  • 7. What I didn’t cover• Debugging• Additional libraries• More Meta Programming• DRY concepts, testing, workflow
  • 8. Resources++• Why’s IRB Guide http://bit.ly/_why_irb• http://cheat.errtheblog.com/s/rails_console• http://bit.ly/thoughtbot-irb• http://bit.ly/tagaholic-irb• https://github.com/cldwalker/ripl• http://bit.ly/stackoverflow-irb• http://bit.ly/pivotal-debug-irb
  • 9. Resources+++• http://railscasts.com/episodes/48-console-tricks• http://slash7.com/2006/12/21/secrets-of-the-rails- console-ninjas• http://errtheblog.com/posts/24-irb-mix-tape• http://drnicwilliams.com/2006/10/12/my-irbrc-for- consoleirb• http://vimcasts.org/episodes/running-vim-within-irb