January 2009
5 posts
6 tags
Going back on Mocking & Stubbing with RR (kind of)
Almost 2 months ago I wrote an article called A case against Mocking and Stubbing. In it I outlined why I think mocking & stubbing is a bad idea. I still maintain some of those beliefs but since I’ve been playing with the mocking framework RR I have changed my tune some. RR allows for a much cleaner and faster way to write mocks and stubs. There is a whole lot more to the framework that...
One Month No TV Challenge
So, continuing with my productivity thread I’ve decided to completely cut out TV for an entire month. I’ve given this some thought and here are my current TV viewing habits: I would say that most of the TV I watch consists of pre-recorded shows. Something that I could easily catch up on at a later time. With such services as Hulu and NetFlix I really shouldn’t have to bother...
Increasing My Productivity II
More productivity increasing: 1.) The multi-touch MacBook touchpad is VERY useful. Learn all of the finger strokes. 2.) (this is from Bryan Liles) This kind of goes against #1 but don’t use the mouse for an entire day. Try to memorize all OSX keyboard shortcuts You’ll be surprised how much faster you’ll be working. 3.) Purchase and watch the Peepcode Productivity Screencast.
Increasing my Productivity
In my never ending attempt to increase my productivity I’ve started printing cheatsheets and hanging them up around me. I have a terrible memory and spend a good amount of time bouncing between RDocs looking up methods that I’ve used 100 times before. Next step: master Textmate… then probably go back to VIM. (or Emacs) Rails Testing Shoulda 2.0 TextMate for Rails Please let me...
3 tags
Testing Your Helpers Sucks (but necessary)
Lately I’ve been really focusing on getting 100% code coverage and keeping my views free of all logical statements. This means moving all of the logic that would be in a view into a helper and testing that helper. In a previous post I spoke about testing your helpers. Here are some things I’ve learned since then: 1.) Helper testing is very much like Unit Testing (hell, it *is* unit...