All Posts By “Kevin Jalbert“
● @kevinjalbert ● web ● github ●
As developers we are constantly learning tips, tricks and new ways to accomplish our work. We continue to accumulate these tips daily, but at the same time we potentially forget the less used but relevant ones. A system is presented that ensures that these tips are remembered.
Do you define methods within your Rake Tasks? You might want to reconsider that, or you're gonna have a bad time down the road. Walkthrough an example which illustrates a tricky gotcha and solutions to avoiding it.
API developers put a lot of time and effort to ensure that their API can scale. One effective way to mitigate load is to use HTTP caching. As developers we need to respect HTTP caching to not waste efforts.
Explore two approaches for testing along with a suggested workflow. The goal is to improve the time spent during regression testing. The described technique can apply to other testing frameworks, assuming they have similar mechanisms to RSpec's `it` blocks.
Everyone has a bag of tricks in the form of tips and shortcuts that they use throughout their lives. In general, there is no harm in sharing this knowledge. This post encourages sharing ones bag of tricks to others, as well as discusses various benefits.
RSpec 3.0 introduces new verifying doubles that offer the ability to verify received messages against the underlying class/object. Learn how using verifying doubles offer more robust tests with little effort.