Lots of news for the Chicago.PM group! We've got a new Chicago.PM website, powered by Github, up at http://chicago.pm.org. The website is completely editable via Github using the Octopress system. We hope to start sharing resources about Perl on our website, increasing the exposure of the good tutorials and learning sites.
A co-worker came to me today with a curious error message:
use DateTime; my $date = DateTime->new( year => 2013, month => 4, day => 15 ); $date->set_time_zone("Australia/Sydney"); print $date->today;'
This code gives the error
Can't locate object method "_normalize_nanoseconds" via package "2013-04-15T00:00:00" at /usr2/local/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/x86_64-linux-thread-multi/DateTime.pm line 252.
The package "2013-04-15T00:00:00" is the curious part: It looks like a stringified DateTime, but who could possibly be stringifying a DateTime object and then using that as a package name?
At the Bank we have a home-grown ETL framework that we've been using for quite some time. We recently completed a total rewrite, but unfortunately we left out a few changes. Had I gotten those changes in 5 months ago, I would have only had to break the API of about 10 modules. Today, in order to make those changes, I have to break the API of 122 modules.
What follows is an account of this ordeal, provided for entertainment value only. There will be a future post that explains some of the things I did to make this task surmountable.
[EDIT: The presentation doesn't appear to work on mobile devices. I'm trying deck.js, and I'm not sure I like it.]
Search this blog
- Chicago.PM New Website! New Meetup URL! New Presentations Project!
- Chicago.PM - Beyond grep - Expanding the Programmer Toolset
- I Bless You in the Name of the Stringified Object
- Thoughts while changing the API of a massive framework...
- Chicago.PM - Dependency Injection (also: Beam::Wire)
- Chicago.PM - Mojolicious
- Testing is a Feature of Your Service
- Chicago.PM Report - Scripting Git With Perl
- Using MooseX::Types to inflate config values
- Chicago.PM Report - Project Night: Alien::Base