Tag Archives: hacks

Review a git branch in the terminal

When I review a pull-request with many commits, I want to be able to see all the commits and step back and forth through them. I used to use a git GUI (or github's web pages), but I hated having to leave the terminal to do that. Today I whipped up a Perl program to […]

Posted in git, perl programming | Also tagged , , , | Comments closed

UNIVERSAL::new for command line MU

Years ago, chromatic released Acme::UNIVERSAL::new. It was a joke. This is not. Using object-oriented modules from the command line can be a PITA. I have to type the module name twice: once to load it and once to construct objects with it. In a program, that's not huge overhead, but in a one-liner, it annoys […]

Posted in hacks, perl programming | Also 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 | Also tagged , , , | Comments closed

How to move CPAN RT tickets to Github

Most of my new CPAN modules use Github for issue tracking because of the nice integration with pull requests. I recently wanted to migrate an older distribution to using Github, but didn't want to track tickets in two places. A while ago, Yanick Champoux wrote Bandying tickets from RT to Github, which looked like exactly […]

Posted in git, perl programming | Also tagged , , , | Comments closed

Why I sometimes hate require

Can you spot the error in this code? Not yet? Here's the error I get compiling it: What the heck? I imported Num, so why is it not allowed? (Spot the error yet?) Here's a hint: I'm using a Mac. Does this make it clearer: Aha! I said "Mooselike" instead of "MooseLike". And the Mac […]

Posted in perl programming | Also tagged , | Comments closed

© 2009-2015 David Golden All Rights Reserved