Tag Archives: Perl

Programming Tip: Open and Close at the Same Time

One useful programming habit I picked up at some point is: if you open or start something, immediately close it or end it. If you open a bracket, immediately write its closing bracket. If you open a file, immediately write … Continue reading

Posted in Hacking, Things I've Learned | Tagged , , | 3 Comments

Don’t Put Information in Two Places

While playing around with a Perl script to look up stock quotes, I kept getting warning messages about uninitialized values, as well as mising data in the results. I eventually tracked it down to a bug in an old version … Continue reading

Posted in Hacking, Perl | Tagged | Leave a comment

When to Optimize

The First Rule of Program Optimization: Don’t do it. The Second Rule of Program Optimization (for experts only!): Don’t do it yet. — Michael Jackson

Posted in Hacking | Tagged , , , | 3 Comments