Because Perl definitely isn't dead.
Random header image... Refresh for more!

Category — Uncategorized

Perl like it’s for CPAN?

Why don’t I write more technical content? I spend so much of my time writing and researching code and code related things. After reading through some tips I think I’m going to try and make a more concerted effort to post some more technical and hopefully useful content.

Perl Buzz has a short extract from Chris Prather’s blog coding all your code like it should be for CPAN. In particular he mentions building make files so that you can automatically install dependencies using CPAN. Whilst I’m not entirely sure the merits of using make files for all your code are completely valid, the other stipulations that CPAN have in place certainly have proven useful to me.

Perldoc: Anyone not including proper documentation in their Perl modules really should do. Even if you ‘think’ noone else will ever work on your code. So many times I’ve come across some code that has no documentation and had to struggle through it. Now that’s a pain when it’s someone elses code, but it’s embarrassing when it’s my own!

Commenting: There is a big difference in my eyes between standard commenting and Perldoc. Perldoc is great for documentation relating to your modules. What your module does, what functionality it offers, who wrote it etc. Commenting however is to explain what you are doing with your code. All Perl developers are guilty of writing slightly less than readable code at one time or another. The more commenting you use the easier it becomes to follow the code. There is nothing worse than having to come back to your own code and not being able to fathem it out quickly.

Version Numbers: Version numbers are a requirement for all modules on CPAN. As I use version control for all my modules I have version numbers associated with them. I don’t include them in the modules unless they are to be distributed. Nevertheless being able to differentiate between instances of the same module is important.

Testing: All modules require unit tests. Unit testing is something I’ve recently learned to embrace. If you are of the mind set that writing tests takes too much time. Then I’m sorry you are simply wrong. Every time you write some code for a project you can quickly run the all the tests on all the modules in that project and you know that everything should work. As you need to check if your code works anyway you need to test it, if you don’t do this by writing tests you do it using some other process. Querying your web server for example. Firing you your web server takes time, requires resources and may not be a good for other people who want to use your module.

Well that felt like a bit of a rant but I feel that some of this stuff is fairly crucial to Perl developers and know that it’s the way things are tending towards at work.

October 18, 2008   No Comments

Ireland Trip

I returned from Ireland yesterday evening. We took the Ferry from Hollyhead to Dublin and then drove all the way accross Southern Ireland to almost the most westerly point in Europe called Dingle. Didn’t really get as many great shots as I would have liked, but I got a few.

Dingle Harbour

Dingle Harbour

September 21, 2008   No Comments

Vodafone Customer Retention

So far only 4 calls from Vodafone customer retention in the last 12 hours! I’ve requested my PAC code from Vodafone and am now being spammed by calls from 0808 0000133. I’m really not impressed, particuarly as I’ve answered one of them and made it perfectly clear that I don’t want to stay with them as I have another contract with O2.

This is surely not a great way to interact with your customers. Frankly every time I’ve ever dealt with Vodafone over the phone the service has been terrible, I wouldn’t stay with them even if they did offer the iPhone!

August 8, 2008   No Comments

There once was a tunnel…

Apparently this used to be a tunnel but it collapsed. It’s on the canal between Marple and Romiley. Just past the Aqueduct. I wasn’t really satisfied witht he lighting hence the black and white conversion.

July 20, 2008   No Comments

Chrysanthemum

Looks like I’ve missed another day or two on my 365 :( So I think I’m just going to give up on it and attempt to post as much as possible. Anyway, I bought Janet some flowers today and here is one of them. I was playing with off camera flash and macro tubes again.

Chrysanthemum

July 19, 2008   No Comments

Day 22 – Hard Disk Motor

Hard disk motor. Playing with off camera flash. Both camera and flash in full manual.

Hard Drive Motor

Camera:  	Canon EOS 30D
Exposure: 	0.01 sec (1/100)
Aperture: 	f/20
Focal Length: 	50 mm
ISO Speed: 	200
Exposure Bias: 	0/3 EV

July 13, 2008   No Comments

Day 20 – Corn Field

Corn Field

July 11, 2008   No Comments

Day 16 – Two Pounds

Another macro shot. Just playing around. I think I need some more focus for these daily shots. Like a mini project if you would. Anyone got any themes or suggestions otherwise?

Two Pounds

Camera: Canon EOS 30D
Exposure: 0.04 sec (1/25)
Aperture: f/5.6
Focal Length: 50 mm
ISO Speed: 400
Exposure Bias: 0/3 EV
Flash: Flash did not fire

Yes the flash did fire. It seems that when I’m using my off camera remote on manual the exif information doesn’t appear.  Anyway, it fired on 1/32 power reflecting off the ceiling.

July 7, 2008   No Comments

Lauxinid Fly – Neogriphoneura sordida

According to some loveley people on the TP forums this is a Lauxinid Fly (Neogriphoneura sordida). Took it yesterday on my first outing with my Kenko extension rings.

Lauxinid Fly - Neogriphoneura sordida

Camera:  	Canon EOS 30D
Exposure: 	0.004 sec (1/250)
Aperture: 	f/20
Focal Length: 	50 mm
ISO Speed: 	1600
Exposure Bias: 	0/3 EV
Flash: 	Flash fired, red-eye reduction

July 5, 2008   No Comments

Change of scenery

Decided it was time for a change of scenery so we are trying this theme out for a while.

June 30, 2008   No Comments