preaction
- About: I blog about Perl. I work for Bank of America. I own Double Cluepon Software.
Recent Actions
-
Posted Chicago.PM - Beyond grep - Expanding the Programmer Toolset to preaction
Last week, Andy Lester (author of Land the Tech Job You Love) came to talk about tools to help programmers work more efficiently and the 2.0 release of his Ack search tool.
-
Commented on mozilla:ldap error
This really isn't a good place for support questions like this. Try: * irc.freenode.net #perl * irc.perl.org #perl-help * perlmonks.org * Your local Perl Mongers mailing list, from pm.org If all of those fail, perhaps stackoverflow.com, but that also is...
-
Posted I Bless You in the Name of the Stringified Object to preaction
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…
-
Commented on Thoughts while changing the API of a massive framework...
We have two teams that each have different databases. We have three databases that we directly manage: Sybase and two commercial time-series databases. We also have CSV and JSON "database" modules so we can chop up a job or save...
-
Commented on Thoughts while changing the API of a massive framework...
There is some refactoring we can do, but not as much as you'd think: These are all client modules of the framework. They're the implementations. They get/put data from/into databases (7, including CSV and JSON), they get data from various...
-
Posted Thoughts while changing the API of a massive framework... to preaction
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…
-
Commented on What exactly is going on at Perlmonks?
"Man-hours" could have been perfectly innocent. "I refuse to acknowledge the term man hours, you patriarchical pig," made "man-hours" fully self-aware, and then belittled everyone who might have said "Hey, you know, you could have just said 'hours' here." This...
-
Commented on Chicago.PM - Dependency Injection (also: Beam::Wire)
The DAOInterface role is just an interface. By implementing the required methods, you can create an implementation that you can then give to another object. So I could have a DBIx::Class implementation of the DAOInterface, or a MongoDB implementation of...
-
Commented on Fat Versus Thin Core
I'd argue that choosing one of the web frameworks would immediately invalidate all others. CGI.pm is an interface, not a framework. PSGI is an interface, Plack is what implements it (maybe even too richly). The people who choose not to...
-
Posted Chicago.PM - Dependency Injection (also: Beam::Wire) to preaction
At this month's Chicago.PM meeting, I gave a presentation on Dependency Injection and my new module, Beam::Wire.
[EDIT: The presenta…
-
Commented on Bringing Old Modules Up To Modern Specification
I like this idea. Anything to improve the quality of CPAN without breaking the community of CPAN is a good thing. Are there going to be more than one patch per dist? Could the patch consist only of the META.{yml/json}...
-
Commented on Finally turning on to DBIx::Class
And then *BOOM* drop the mic on the stage and walk out of the office....
-
Commented on German Perl Workshop: My Day 2
They might be using the "solarized" color scheme, which has a lot of blue in it (all sub names and package names are in blue). I like it because it's low-contrast and still readable in a wide variety of ambient...
-
Posted Chicago.PM - Mojolicious to preaction
February's meeting was about the Mojolicious Web Framework. Joel Berger has written a minimal Perl CMS called Galileo, and agreed to give a talk about the…
-
Commented on Does Perl (5) have a future?
I used to play a video game called Subspace, created by the now-defunct Virgin Interactive Entertainment (VIE). I first played this game in open beta in middle school. It was one of the first MMOs that wasn’t an RPG. Later,...
-
Commented on On the version number succeeding Perl 5
Better organization and cleanup of the standard library. If I want to get the canonical path of some file or directory, I need to use the aptly-named Cwd module. File::Spec and File::Path, which one can append directories in a cross-platform...
-
Commented on Installing all CPAN modules
Sounds like you want to make a CPAN mirror. http://www.cpan.org/misc/how-to-mirror.html Also look at CPAN::Mini, it might help...
-
Commented on A quick static file webserver
I think I stole this snippet from Chromatic, same thing as Theory’s, with index.html support: #!/usr/bin/env perl package Plack::App::IndexFile; use parent 'Plack::App::File'; sub locate_file { my ($self, $env) = @_; my $path = $env->{PATH_INFO} || ''; return $self->SUPER::locate_file( $env )...
-
Commented on Identifying CPAN distributions you could help out with
What are the odds that my help would actually be merged though? I've submitted patches to popular Perl modules before, but I'm not sure they ever got looked at, much less merged. Perhaps look at which modules are still getting...
-
Posted Testing is a Feature of Your Service to preaction
My job at Bank of America consists largely of data collection and storage. To collect data in Perl, I have to write XS modules to interface with the vendor-supplied native libraries. Because I want to know my code works, my XS modules come with robust test suites, testing that everything works…
-
Commented on Chicago.PM Report - Scripting Git With Perl
I'll update my slides for the work_tree thing, and I'll check out the log plugin. It'd be nice to not have that hacky parser in there for the world to see....
-
Posted Chicago.PM Report - Scripting Git With Perl to preaction
This month's presentation was on the Git::Repository Perl module, given by me. In both my jobs, I use the Git::Repository module to automate releases.
At Double Cluepon, I use it to create …
-
Posted Using MooseX::Types to inflate config values to preaction
For a large application, configuration files become a necessity. They help flexible code be used in multiple instances across multiple modules. But they are, for the most part, only data structures, which can be a problem if the configured object is expecting another configured object.
…
-
Posted Chicago.PM Report - Project Night: Alien::Base to preaction
This month's project night focused on Joel Berger's Alien::Base module. The final bugs are either squashed or very close, and we got an introduction to how the whole thing works.
I learned some interesting things about DynaLoader that helped cement the idea that it's an interface on to the…
-
Commented on Counter-productive over time
Excellent post. At Bank of America, we use local::lib to install both our code and our deps, so they both go through the same Jenkins testing and staging process. With good test coverage, even our dependencies are stable, so there's...
-
Posted Run-time Class Composition With Moose to preaction
Moose is great! At its very basic, it simplifies the boilerplate required to create Perl objects immensely, providing attributes with type constraints, method modifiers for semantic enhancement, and role-based class composition for better code re-use.
Moose is built on top of Class::MOP. M…
-
Posted Chicago.PM Report - App::Services by Sean Blanton to preaction
This month's technical presentation at Chicago Perl Mongers was about Sean Blanton's project called App::Services. It's an interesting project that uses
-
Posted Plan (software) to live forever to preaction
How often have I told myself, "I'll kludge this now and rewrite it later"? And how many times did I actually go back and rewrite that kludgy bit? "Too often" and "not enough". Many job postings include the phrase "update legacy applications," as a euphemism for "rewrite poorly-designed…
-
Posted Chicago.PM Report - App-Prima-REPL to preaction
We had our first project night at Chicago.PM this week, where we discussed ideas and wrote code for a Perl REPL GUI program (App-Prima-REPL on Github) by David Mertens built on
-
Commented on Sexual Harassment?
It is unprofessional, as is the idea of workplace dating....
Comment Threads
-
Duncan commented on
Fat Versus Thin Core
I think the premise of downloading a thin core and then an extended core is quite solid. I've come across two examples recently where other programs do this.
I was working on a fresh Ubuntu installation and I couldn't get the Vim syntax highlighting to work. I went to the sys admin and asked him to download the full version of Vim. He knew immediately what I meant and once he had done it I had all the vim features I needed. I didn't have to keep going back.
Later, on the same installation, I couldn't get our Perl modules to install because there wasn't a C compiler. Once I nu…
-
Tatsuhiko Miyagawa commented on
Fat Versus Thin Core
Python has WSGI and Django and Ruby has Rack and Rails, and none of them are shipped with the language core.
-
Joe McMahon commented on
What exactly is going on at Perlmonks?
The problem with, "well, it was just one bad joke" is that it's the death of a thousand cuts. Yeah, that one little thing this person did "wasn't that big a deal". And the one this other person said wasn't really supposed to be insulting. And these people didn't really mean to exclude you.
It adds up. It's the emotional equivalent of repetitive stress injury. Overusing your hand today wasn't that big a deal, it's just a little sore. Do it over and over for months, and suddenly you hurt so bad you just can't type anymore. -
Pedro Melo commented on
Fat Versus Thin Core
I would prefer a thin Perl core, but not until we can install modules without super-user permissions on any system and having them recognised immediately by perl.
The path to this nirvana-like place is not that hard:
1. settle on ~/.perl5/local [1] as your own personal "local::lib" source;
2. make sure perl always sources /etc/perl5_policy.pl first: this should take precedence even over sitecustomize.pl which is a per-library file;
3. distribute a default perl5_policy.pl file that, if running as a non-priviledged user, and if ~/.perl/local exists, prepends the … -
Steven Haryanto commented on
mozilla:ldap error
I wonder why you think SO is not a good place for this?
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.