Reducing WatchKit Traffic With View Models
To improve the speed and responsiveness of WatchKit apps it’s important to limit the amount of data sent from the phone to the watch. In this post I will outline how to achieve this through the use of View Models.
Share Your Bag of Tricks
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.
No Excuses: Verifying RSpec Test Doubles
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.
Mutate your Rack middleware's env!
Rack middleware is a powerful pattern to follow, however, there are some 'gotchas'
that you need to keep in mind when developing new middleware. This post explains
how you should be using Rack's env
.
Are Your Cache-Control Directives Doing What They Are Supposed to Do?
Cache-Control
directives are pretty straightforward to understand. They're
easy to use as well if you assume that all the caches between your end user
and application correctly implement the spec. Unfortunately, as with any spec,
you can't make that assumption.
The Toiling Programmer: Succeeding as a Developer
Ever get a feeling of dread while working on a long problem? That feeling is cancerous towards your work, your relationships at work and your well being. I've personally experienced it many times during my short career -- it's not a fun experience and that's why I would like to write about it. Work doesn't have be like that. You can stop the cycle and feel way better about yourself!
Background Processing: Use Einhorn to Spawn and Manage Worker Processes
When building a custom background processing system, at one point, you need to worry about how you spin up and manage multiple worker processes. This is where most people reinvent the the wheel, and write custom code. Don't reinvent the wheel, and use Einhorn instead.
3 Ways to Create Classes in Ruby
Out of the box, there are 3 ways to create classes in Ruby. Find out how to use all 3 options, and learn when to use one option over another.
Select and Map Are Good
This article argues that when able to one should break down iteration operations over an array into map and select as opposed to operating on the enumerable through an each.
Simple Ways to Protect an API: HTTP Basic Authentication and HTTP Token Authentication
Having a limited number of consumers for an API lets you keep the authentication really simple for that API. Let's explore HTTP Basic Authentication and HTTP Token Authentication as the simple solutions in this scenario.