First, the book. As you may know, I released a new gem recently called Naught. What you may not know is that I wrote that gem as a Literate Program. In other words, what I actually wrote was a little book, and the gem was a byproduct.
Today I’m releasing that book. It’s called “Much Ado About Naught: An adventure in Ruby metaprogramming“. The title pretty much sums it up: this is a book about one of my very favorite pastimes, metaprogramming in Ruby. As you watch the Naught library come together, you’ll see me demonstrate most of the metaprogramming tricks, techniques and gotchas that I’ve learned over the years.
It’s also a book about TDD, because I followed a strict process while writing the library and the book:
- Explain the next feature to be written.
- Translate the prose explanation into concrete RSpec tests.
- Write code to make the tests pass.
- Refactor (and explain).
Oh, and one more thing, it’s filled with delightful Paintbrush illustrations by Lauren Shepard! (aka my mom)
This book is technically still in beta, but that’s really just because I’m still doing some copy-editing and tweaking the output formats. Otherwise it’s finished and ready to be read. If you want a taste of it, I’ve put the introduction online.
Now, on to the other item of business…
Today is my birthday, and as has become tradition, I’m throwing a great big sale to celebrate. This year I’m offering 50% off anything in my store for any purchase of $10 or more. That means any of the books or screencasts found here. To get these savings just use coupon code: HAPPY0X21
And yes, this includes the brand new “Much Ado About Naught” book. It lists for $12, but today you can get it for $6.
Or shop for other products. Just don’t forget to enter the discount code!
Thanks for supporting me in writing about the stuff I love. Happy hacking!