Tanner Mares

Husband, Father, Geek, Surfer, Drummer.

How Git Bisect and Giant Robots Saved the Day.

A couple weeks ago, while I was pushing an update to one of our repositories, I noticed our test suite had a plethora of failing specs. Immediately thinking it was my fault I reverted my changes and ran the test suite again. To my surprise the tests were still failing. Now what? Do I just keep rolling back commits until I find the code that broke the tests? Or, do I start back a day or two and see if they were broken then? Enter Git Bisect!

Git Bisect is a built-in git utility that uses binary search to inspect a set of commits(too numerous to manually checkout) for the code that broke your tests.

I was able to use git bisect, with the help of the blog post from the amazing guys at thoughtbot, to examine all of the commits in question and find the code that broke our tests. It turned out to be a bug in a gem we were using and not our code itself. C’est la vie.

Check out the giant robots smashing into other giant robots post for all the details.

Why I Use RubyMine…For Now.

Hello Everyone! I have been struggling with a new topic to write about this last month. Since I couldn’t think of any mind blowing code samples, I have decided to show you my current development environment. Specifically, my text editor. For about a year or so I have been using Sublime Text as my text editor of choice. With its virtually non-existent learning curve and slew of plugins, it is a god among text editors.

Make a Blog You Might Actually Use in 15 minutes…ish

Amanda was first introduced to me on a ruby 5 podcast while driving to work one morning. I had heard of a blog engine that used Dropbox (scriptogr.am), but I always like the idea of making something myself. It was a relatively painless setup, though there were a couple gotcha’s that I would like to write down here, even if only for my own sake. Now to introduce her.

Ruby String Concatenating vs Appending

While reading through the github style guide for ruby, something popped out at me that I considered a little more than just good style. Being that most of my programming experience is in PHP, I have concatenated strings like this

Command Line Style File Creation in Sublime Text 2

While watching several thoughtbot videos in which VIM is the editor of choice I found myself consistently falling behind whenever the proctor would create a new file in a directory structure that does not exist yet. In vim its as simple as writing the path of where this new file should go. In Sublime Text however, its a very mouse heavy process. Until, the “AdvancedNewFile” plugin! Now file creation is as simple as command line. Check out Nettus+ video below!

Lightning fast file and folder creation with Sublime Text 2