Monthly Archives: March 2013

How I've started managing GitHub pulls

I don't like GitHub's pull interface. They make merge commits, which suck. And I want to work from the command line, not the web site. When I noticed that I was losing on the scoreboard, I wrote a quick and dirty script to list open pull requests for a repository from the command line: github-list-pulls. […]

Posted in git, perl programming | Tagged , , , | Comments closed

The GitHub pulls scoreboard says I'm losing

I'm embarrassed to admit that I just fixed a bug, shipped the module, and then discovered a 2-year old pull request that fixed it better. Oops. I hate things like that! Fortunately, I just discovered that GitHub offers a pull request scoreboard with two views: Pulls sent: https://github.com/dashboard/pulls Pulls pending: https://github.com/dashboard/pulls/public Unfortunately, the scoreboard says […]

Posted in git, perl programming | Tagged , , , , | Comments closed

How to mass-favorite modules on MetaCPAN

I love that MetaCPAN lets me "++" modules (distributions, really) to mark them as favorites, but going distribution by distribution to click things is not my idea of a good time. Time for laziness, impatience, hubris. Click favorites? No way! Let's automate that shit! (First, thanks to Moritz for giving me the pieces of the […]

Posted in cpan, hacks, perl programming | Tagged , , , | Comments closed

No more copy and paste: How to refactor tests with roles

Raise your hand if you've ever cut and paste a huge chunk of code — or even a whole file — for testing. I have. And I feel guilty, because I know the DRY mantra: "Don't repeat yourself!" But somehow, rules we follow for our application code, we forget for our test code. Here's a […]

Posted in perl programming | Tagged , , , | Comments closed

Stop Pod tests before they stop you!

Have you ever installed a CPAN module with a big dependency chain and had installation fail somewhere in the middle? Have you ever investigated and found the failure was due to Test::Pod or Test::Pod::Coverage? AAARRRGGGHHH! I hate that! Pod tests are release tests and shouldn't be inflicted on end users. But some authors got hooked […]

Posted in hacks, perl programming | Tagged , , , , | Comments closed

© 2009-2014 David Golden All Rights Reserved