New Job - New Server

Posted by Graeme Thu, 18 Mar 2010 11:26:46 GMT

Sorry I’ve not posted for a while, been really busy at work (MEN) working on the new site, however next Friday is my last day here. I’m leaving for pastures new. I’m soon to be the new development manager for Set Fire Media.

I’ll be working mainly with RoR but still a bit of Perl - as a result I’ve been playing with Rails for a couple of weeks now, and all I can conclude is that RoR might as well be Catalyst with Moose and a different templating front end. You can certainly see where the ideas have crossed over!

With regards to the new server, this is now a new server running Cherokee rather than Apache, so we’ll see how things go!

Posted in  | Tags , ,  | no comments

Welcome to per.ly

Posted by Graeme Fri, 24 Apr 2009 23:34:32 GMT

Welcome to graeme.per.ly, the replacement for alola.org. All the content from alola.org, has been imported here. The idea is that we should hopefully be able to get a couple of Perl or other Dev related blogs going on here and have them on xxx.per.ly etc.

http://per.ly/ will be an aggregate of these blogs, and perhaps some other content. So hopefully more good content soon to be appearing!

Posted in  | no comments

New Server

Posted by Graeme Sat, 28 Mar 2009 14:35:02 GMT

If you are seeing this then you are an the new server….. woo hoo. If not then your DNS hasn’t updated yet, but I guess you wouldn’t know that as you still can’t see this!

Posted in  | Tags  | no comments

There's probably no god

Posted by Graeme Sat, 24 Jan 2009 12:46:18 GMT

“There’s probably no god, now stop worrying and enjoy your life”

I knew these campaigns were running in London, but was surprised to see it on a bus in Stockport. Never heard a religious message proclaiming “There probably is a god”!

Posted in  | no comments

Happy new year

Posted by Graeme Mon, 05 Jan 2009 00:09:32 GMT

Sorry, I’m not actually dead… I’ve actually been posting loads recently, just not here. I’ve been concentrating on my photography blog for a while. New camera and not working much over Christmas, kinda lead me to work on my photography a little more. Anyway, I’ll be back with some Perl love soon I’m sure!

Posted in ,  | no comments

Year in Photos...

Posted by Graeme Mon, 22 Dec 2008 09:10:52 GMT

Boston.com have an article with the year in photos. There are another two pages of photos too if you follow the links at the top. Some of the phtos are awesome, some are grusome!

Posted in  | Tags , ,  | no comments

CPAN not playing nice...

Posted by Graeme Sun, 21 Dec 2008 23:44:47 GMT

Just been trying to set some modules up using the CPAN shell on my server and was having some terrible trouble with modules all failing to make, with no real error message. All that was reported was “Not OK”.

So I hit the console and tried to manually make one of the modules and that worked fine. After some more digging I discovered that for some reason the config variable telling cpan where the make binary wasn’t set, so a simple “o conf make /usr/bin/make” and now everything’s hunky dory.

Silly CPAN.

Posted in  | Tags ,  | no comments

Math Joke...

Posted by Graeme Mon, 24 Nov 2008 18:05:42 GMT

An infinite number of mathematicians walk into a bar.

The first one orders a beer.

The second orders half a beer.

The third, a quarter of a beer.

The bartender says “You’re all idiots”, and pours two beers. ”

Posted in  | Tags , ,  | no comments

Devel::NYTProf Screencast

Posted by Graeme Sat, 18 Oct 2008 23:13:38 GMT

Tim Bunce of DBI fame has made his screencast from OSCON this year. It’s about Devel::NTYProf. If you haven’t used it, it’s an awesome module and well worth watching the screencast. Most amusing is perhaps the lack of the audience getting his British humor!

Devel::NYTProf was originally made by the good people at the New York Times and Tim took it over fairly recently. It kicks Devel::Dprof’s ass, so go take a look.

Posted in  | no comments

Perl like it's for CPAN?

Posted by Graeme Sat, 18 Oct 2008 18:57:21 GMT

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.

Posted in  | Tags , , , ,  | no comments

Pages

Categories

Archives

Uploads from ka052000 (flickr)

Lexie Lings
IMG_3837
Lexie Christmas Day
Birthday Benjy!