Hi! Thanks for dropping by, and for watching my talk, “Metaprogramming? Not Good Enough!”
Here are some extras, resources, things that didn’t quite fit in. Consider them a gift to you, for spending your time with me.
First, here are the slides for my talk:
With those, you can walk through the entire process of building a simple object model on top of Ruby, without a 40 minute time limit.
But you shouldn’t grab the code snippets from that. I had to make some tweaks to get it formatted well on the slides, so probably won’t run as-is. Plus, you have better things to do with your time than copy-and-paste code snippets from a PDF.
Instead, I’ve uploaded a gist of the entire object model, complete with the examples I showed during the talk. It also includes an extra example that didn’t fit into the talk: prototype inheritance. Check it out!
If you want to see where this idea came from, here’s a link to the paper the talk was based off of.
I’ve also collected a few of my best articles below. They’ll help you write cleaner code, find and fix performance problems, write better tests, and more:
- 3 Ways to Monkey-patch Without Making a Mess
- How Do Gems Work?
- Untangle spaghetti code with a simple change of perspective
- How to Debug Ruby Performance Problems in Production
- 4 Simple Memoization Patterns in Ruby (and One Gem)
- Writing better tests with the three-phase pattern
Read through them – I know they’ll help you out.
And finally, I’m running a sale on my book, Practicing Rails, for RubyConf! Until 11:59PM on November 14th, use this link to get a copy for $36, 25% off the normal price.
If you want to write high-performing, high-quality, successful Ruby apps, there’s a lot you’ll need to know. It feels impossible to keep up. But if you don’t seek out new knowledge, you’ll start to fall behind.
To help you write great Ruby and Rails apps, I’ll send you an email tutorial every week. You don’t have to find them, they’ll come right to you. Sign up below, and you’ll learn how to speed up your apps, discover new Rails features, write more effective tests, write code more quickly, and become a better Ruby developer.
And as a bonus, as soon as you sign up, I’ll send you the first chapter of Practicing Rails, my book about learning Rails without being overwhelmed, free: