Testing web apps that make use of the new HTML5 features can be frustrating. With some work, we can use Capybara to test them through the browser easily.
When Foo has the functions of our ClassToTest, Sinon is happy. When we create a Foo, the ClassToTest initialize does not run, which makes our tests happy.
Error handling schemes tend to add all kinds of complexity and ugliness to C code—especially in low-level programming where error cases are most prevalent.
Figuring out maximum character counts for concatenated SMS messages is complicated. Throw character encodings into the mix, and everything can become very muddled.