How to refactor your own computed properties in Ember.js.
Convert a CoffeeScript function that takes multiple arguments
into a chain of functions that take one argument each.
This is called function currying,
and it can make your easier to understand!
Before adding database indexes, eager loading, and caches,
spend a few minutes at the whiteboard with your team to rethink
the high-level requirements for your JSON API.
An in-depth look at HTTP requests and how Ajax works in Rails.
How to use Capybara’s
Make clunky negation queries in ActiveRecord easier to read.
We use RSpec feature and specs heavily,
controller and view specs more judiciously,
FactoryGirl for test data,
like test doubles and test spies but not test mocks,
and we stub external requests with Webmock.
An example of making complicated code easier to test by using
the Builder, Decorator, Chain of Responsibility, and Null Object patterns
and recursion, object composition, and immutable objects.
How to use ActiveRecord’s NullRelation.
Partials are a great way to break down complex view into more manageable...