Charles Hansen

Biography

  • Testing JavaScript Promises

    Testing JavaScript Promises

    tldr: Testing promises is surprisingly hard. I wrote a mock-promises to address it. A recent project of mine included a single page Marionette app that used promises around the requests for model...

    Read More
  • Swapping between JavaScript spec and implementation in RubyMine

    Swapping between JavaScript spec and implementation in RubyMine

    When test driving your code, you inevitably end up switching between the tests and the implementation. In Rubymine, there is a handy command-shift-T shortcut for doing this with ruby files, but...

    Read More
  • Keeping the Console Clean in Jasmine

    Keeping the Console Clean in Jasmine

    I like running Jasmine with the console open. It gives you insight into various errors that you may not have tests around but may still show up in the console messages. It can detect anything...

    Read More
  • When pairing doesn't transfer knowledge fast enough

    When pairing doesn't transfer knowledge fast enough

    Pairing is great for knowledge transfer. With a reasonably sized 3 pair project, you can completely avoid code reviews, training sessions, tutorials, or any other means of teaching a developer...

    Read More
  • Why we don't use OOCSS (but we should)

    Why we don't use OOCSS (but we should)

    I recently had the opportunity to pair with Nicole Sullivan (of OOCSS fame) for a few days on my current project. I learned as much as I could about css components in the three days available and...

    Read More
  • Launching Focused Jasmine Specs From RubyMine

    Launching Focused Jasmine Specs From RubyMine

    RubyMine is great for launching focused rspec tests, but is a little trickier for launching Jasmine specs, but we have had it working on my current project using a shell script and RubyMine...

    Read More
  • Hunting Memory Leaks in Backbone

    Hunting Memory Leaks in Backbone

    Ever notice your backbone app slows down considerably after using it for a few minutes? Or maybe your event callbacks are called more than once each time the event fires? Or my favorite, Chrome...

    Read More
  • loading
    Loading More...