Grant Hutchins

Biography

  • Unit-Testing AngularJS in a Rails app using the Jasmine gem

    Unit-Testing AngularJS in a Rails app using the Jasmine gem

    Testing AngularJS applications is easy with Jasmine. If you look at the AngularJS docs, many of the code examples show a corresponding Jasmine spec. One important part of AngularJS’s testing...

    Read More
  • Keep gem configurations up-to-date with Rails generators

    Keep gem configurations up-to-date with Rails generators

    Many Ruby gems are packaged with a Rails generator that generates a configuration file. Keeping these gem configurations up-to-date can be much easier if you take advantage of these generators...

    Read More
  • Using Arel to build complex SQL expressions

    Using Arel to build complex SQL expressions

    I write and maintain a gem called pg_search that makes it easy to build Active Record scopes that take advantage of PostgreSQL’s built-in full-text search functionality. Part of generating these...

    Read More
  • Refactoring the Deeply-Nested Hash Antipattern

    Refactoring the Deeply-Nested Hash Antipattern

    On a few different Ruby projects, I have seen an antipattern emerge involving nested hashes. For example, consider this simple question-and-answer command-line script: QUIZ = { question_1: { ...

    Read More
  • pg_search: How I Learned to Stop Worrying and Love PostgreSQL full-text search

    pg_search: How I Learned to Stop Worrying and Love PostgreSQL full-text search

    I’m a Pivotal Labs developer at our NYC offices working on the Casebook development team. Casebook is a child-welfare-focused web application used by governments and non-profit organizations. Our...

    Read More
  • loading
    Loading More...