Running rubocop on a local git branches’ diff

You can run rubocop on just a local branches’ changes like this: git fetch && git diff-tree -r –no-commit-id –name-only master@\{u\} head | xargs ls -1 2>/dev/null | xargs rubocop –force-exclusion Then you can create 2 corresponding aliases in your terminal .rc file to make this easy to remember: # Alias to run rubocop on the current branch’s diff from […]

Read

Making your smartphone display grayscale

Lately I have been looking for ways to make my smartphone less addictive. With the rise in popularity of e-ink displays like a kindle, I wondered if I could get a lot of the benefits of that minimalistic approach but with all the power of my smartphone. So I set out to convert my phones to running in grayscale mode. […]

Read

Updating Rails-API to Rails 5 in API mode

Since rails-api was merged into Rails as part of Rails 5, the rails-api project has largely been abandoned, and for good reason. People who have a rails-api app will want to update to Rails 5 in order to stay up-to-date. Although the process is not hard, it is slightly different from a traditional update from Rails 4 to Rails 5. […]

Read

How to choose a career

Strategy #1: Take whatever you can find This is far too common. By definition, whatever you can find typically means a job that you can be quickly trained to do. This generally ends up being at a nonskilled job at a restaurant or a retail store or something like that. Any job that you can be quickly trained to do […]

Read

A Criticism of Scrum

So Scrum. The most popular agile software development methodology, with seemingly around 70% of agile teams using it. What is it all about? Is it good or is it whack? Has Scrum made our lives better? Let’s dive in. Scrum assumes you can reliably estimate task duration Scrum has good intentions. Measuring your productivity. Accountability to not do more or […]

Read

Ways to Protect Flow

Things individuals can do to protect Flow: Keep your phone on silent all day long. Disable all notifications on your computer. Distractions from a phone / computer can disrupt Flow dozens of times every day. Respond to text messages, phone calls, and e-mails when you get stuck. Distractions actually help you when you get stuck. Find music that helps you […]

Read

Service Inheritance in AngularJS using ES6

One of the things that I’ve found is that my Angular services tend to have a lot of duplicate logic in them. The biggest culprit is HTTP calls for CRUD operations. Whether I’m using Restangular, ngResource, or plain ole’ $http, this has been a constant source of un-DRYing in my code. Let’s take a look at using ECMAScript 6’s class […]

Read

Technical Founders and Startup Ideas

Us developer sorts have an unusually hard time coming up with ideas. Often, non-technical folks have lots of ideas, but no ability to make them, and technical folks have the ability to build things, but no idea what to build. Both are rather humbling in their own way. Why is this? I think its partially due to the nature of our work, and […]

Read

How to Recruit Software Developers (If You Must)

Recruiters and business leaders looking to hire software developers have a problem. No, it isn’t that coders are arrogant babies with superpowers and totally unrealistic job expectations. The problem is how recruiters communicate to the developers they hope to hire. Instead of enticing them and trying to buy their love with flamboyant company cultures that have more to do with […]

Read

Line Limits

There are those who feel arbitrary line limits are a bothersome, vestigial construct of the bygone age of punch card programming. Why must we continue to constrain ourselves to archaic requirements imposed upon us by the technological limits of days gone by? I shall tell you why, for I am not one of those people. Here are the reasons why […]

Read