$ ls ~/posts

posts

#Perl#linting

Finding Unused Perl Variables

When you find variables which have not been used, you may find yourself asking, “why is this here?” and you may not easily get an answer. Eliminating unused variables can be good for the performance of the code, but also good for everyone else on your team. So, we want to make sure we can remove old bits of …

· 2 min read
#vim#Perl

Opening Files Quickly from Inside vim

I use ot a lot when it comes to opening files. I wanted to be able to use this tool from inside vim as well. It turns out, the solution is quite simple.

· 1 min read
#CPAN#Perl

Observing Network Traffic with LWP::ConsoleLogger::Everywhere

Today an interesting question came up about whether or not Carton uses HTTPS and also which CPAN mirror it downloads from. I wondered if LWP::ConsoleLogger::Everywhere could be helpful.

· 3 min read
#Perl#Programming

Detective Work with perlimports

I was working on some Perl code which included a function whose origin was not obvious. Here’s how I used perlimports to figure it out.

· 3 min read
#Perl#Programming

Improving prove with Preview Windows

Last month, I talked about how to add tab completion to a CLI program, using fzf. Next we talked about a more generic solution which adds a preview window to a file search.

· 2 min read
#Perl#Programming

Adding a Preview Window to Your Tab Completion

A few days ago, I talked about how to add tab completion to a CLI program, using fzf. As usual, there’s more than one way to do it (TIMTOWDI) and I’d like to look at another approach which also uses fzf.

· 2 min read
#Perl#Programming

Adding Tab Completion to Your Favourite CLI Programs

I like to find what I need quickly, so I make heavy use of tab completion at the command line. Lately, I’ve been using fzf more and more to do this. It’s a wonderful tool. I won’t go in depth about fzf here, but if you haven’t checked it out, please do. I think it’s well worth it.

· 3 min read
CPAN Bus Factor
#Perl#Programming

CPAN Bus Factor

[The following post is the result of a collaboration with Neil Bowers] Perhaps you’ve noticed a new metric when browsing MetaCPAN? #What is “bus factor”? Wikipedia defines “bus factor” as

· 5 min read
#Go#Perl

perlimports

Over the past 6 months or so, I’ve been working on a project to port goimports (or some version of it) to Perl. By now I’ve tested it on our Perl codebase at $work, on MetaCPAN and also some CPAN modules. It’s now at a state where I can say it’s getting to be a useful tool.

· 1 min read