Continuous Deployment with Brood
I just wrote my first post on the (relatively) new IGN Code blog introducing the deployment system I wrote in December, Brood. Here’s an excerpt that explains what Brood is: Brood takes a different...
View ArticleUsing Stubs and Mocks in Unit Tests
In the real world, not all unit tests are as simple as public function testAdd() { $txn = new Transaction(50); $this->assertEquals(75, $txn->add(25)); } For example, a controller for a page that...
View ArticleFlexible Mock Objects with Mockery
If you use stubs and mocks in your PHPUnit tests, you may have run across some of these limitations: You want to call a mocked method more than once and have it expect or return different things on...
View ArticleCode Foo July 2012: Using Git
On Monday I will be presenting an introduction to Git to IGN’s Code Foo class of 2012. Some of the content makes some assumptions about IGN’s workflow, but most of it is generally applicable to anyone...
View ArticleRestarting a Git Branch
I tend to think about my code a lot, even when I’m not in front of a computer. Sometimes I’ll think of a refactor or performance improvement on the train, in the shower, or as I’m lying in bed right...
View Articlegithublink.vim Plugin
I use Vim as my primary editor. I also use GitHub for a lot of my projects. On more than one occasion, I have found myself wanting to share the line under my Vim cursor with a collaborator in the form...
View ArticleTesting Lucene Analyzers with elasticsearch
Up until now, I’ve been using elasticsearch as a way to speed up filtering, not as a search engine for human use. Using elasticsearch for filtering is relatively easy — all the inputs are normalized...
View ArticleLucene Scoring and elasticsearch’s _all Field
At work, I’ve been building a search application using elasticsearch. In my first post on the topic, I talked about indexing and analysis and ignored scoring entirely. Scoring is a very complex topic,...
View ArticleWomprat Colorscheme for Vim
My main “IDE” is vim in a terminal. For years, I used the default 16-color colorscheme, but recently I was inspired by a few blog posts about vim colorschemes and solarized in particular. I tried...
View Articleview on CentOS
When editing a file, it’s often handy to have a related file open for reference. For example, if I’m using a library function I might have the function definition open in a separate window. Or if I’m...
View Article
More Pages to Explore .....