Category Archives: Programming

Can you make it go faster, again?

You know how it is when management asks you to make an existing program go faster, it’s almost always a challenge which is taken up with enthusiasm. You get to explore the codebase, try out new approaches, fix those long clunky if statements, rationalize the code, all within the constraints of maintaining backward compatibility, and utilizing your …

Read more

Widen your horizon

As programmers, many of us tend to be critical thinkers, by nature. We still need to widen your horizon. And mine. It’s no good just churning out the same old stuff, repeating what we were told, or read about, from earlier times. We need to use our brains to consider new ways of doing things, clearer, …

Read more

File::Data v1.20 released

File::Data – interface to file data DESCRIPTION Wraps all the accessing of a file into a convenient set of calls for reading and writing data, including a simple regex interface. Note that the file needs to exist prior to using this module! See new() SYNOPSIS use strict; use File::Data; my $o_dat = File::Data->new(‘./t/example’); $o_dat->write(“complete file …

Read more

Pimps and whores

It’s easy to throw out a generalized statement, like pimps and whores, which pigeon-holes large groups of people together, and which usually serves only to focus their differences against one another. Like blacks and whites, or christians and muslims, us and them, and so on. This was brought abruptly to my attention recently when one …

Read more

Looking for Perl software development work?

If you’re like me, (I’m a Perl software developer), from time to time, you’ll probably be interested in finding new Perl work; remote or onsite, contract or permie, whatever. You could just pop down your local jobcentre, but I’m not sure how useful that would prove. It’s almost certainly a better option to approach one of …

Read more

Is it fixed?

When you want to know if your software is fixed, you need to check it. This may seem obvious, but the number of people who don’t bother cannot be counted. And by “check”, I don’t mean “does the fix look like it worked?” followed by “yes, then let’s deploy it”, I mean something quite different. …

Read more

Generating a trace

Generating a trace with the perl debugger. Having the right tool for the job is essential. It’s all very well having a big, impressive hammer in your toolbox, but if you  ave a nut and a bolt to put together, you won’t get very far unless you have a spanner too. A trace is a report of …

Read more

Debugging a Perl Program

Debugging a Perl Program It’s possible to start the debugger with a piece of Perl code as an argument by including the C<-e> switch on the command line. To debug a particular program instead, we substitute the program name to be debugged, along with any required arguments. So let’s do this with our current program (charcount) and dive into …

Read more