confuseAcat
- About: Random observations that may in some way be related to Perl.
Recent Actions
-
Commented on Perl and self flagellation...
There are several things here that I don't get. I get the impression from the Perl community sometimes that if you aren't using Moose you're not a real Perl programmer. The notion of Modern Perl to me is a bit...
-
Commented on Announcing Perl::Critic::Policy::Variables::ProhibitUnusedVarsStricter
Wow. Mithaldu is right. This is good news! But Tom isn't really wrong either: https://metacpan.org/source/GFUJI/warnings-unused-0.06/Changes AFAIK, the old version wouldn't compile with newer versions of Perl (I forget whether this was with 5.14 or 5.16). I'm a big fan of...
-
Commented on Response to Ejecting CGI.pm From the Perl Core
@raudss.us: Most sysadmins have switched away from Apache a long time ago? You mean not counting the 50%+ that are still using it?...
-
Posted Modules in core: who cares? to confuseAcat

When I first read about the idea to remove CGI.pm from core,…
-
Commented on Site Front Page
Couldn't we simply tell MT to not publish posts that have a body longer than X lines?...
-
Commented on How to be agile without testing
For me, there are two very good reasons for writing tests. I am lazy and I write web applications. Clicking myself through that up until I find the feature I'm working on just to be greeted by a stupid error...
-
Commented on Encouraging bloggers to use the 'extended' feature
Ouch! #3 would be more than just helpful. I always thought that "Extended" was some sort of extended editor. I guess #3 is mandatory....
-
Commented on Discoverable tests and creating testing standards
Very nice. Here's a little more vimscript, also including the GetCorresponding() function: https://gist.github.com/mannih/16c75db8a94f73c2f75d...
-
Commented on Test::Whitespaces
I think this is nice and useful and I hope to use it soon. But: Running the test script from the synopsis using prove doesn't output anything helpful: $ prove t/Whitespace.t t/Whitespace.t .. Failed 364/406 subtests Test Summary Report -------------------...
-
Commented on [FB]izzBuzz in Perl
It's interesting that you are going for the shortest solution. Jeff's post describes a test for hiring programmers. If I were to hire somebody, I'd put all my bets on the candidate delivering the cleanest code and I'd give lots...
-
Commented on How to use SOAP::Transport::HTTP::Plack
Oh, sorry. To be fair, the module works very well and I'm grateful you put it on CPAN. But saying that the documentation isn't really helpful actually was quite fair. I didn't post this here to shame you, but to...
-
Posted How to use SOAP::Transport::HTTP::Plack to confuseAcat
I needed to port a little cgi-script that implements a simple SOAP-server to Plack. After a little searching, I came across SOAP::Transport::HTTP::Plack.
Unfortunately, t…
-
Commented on LCLOC of the month
Thanks for the question, Hercynium! It perfectly answers Gabor's question, because the line you posted is almost exactly the line I used to replace that LCLOC....
-
Commented on LCLOC of the month
git says that this beautiful line just popped into existence....
-
Posted LCLOC of the month to confuseAcat
Here's the Least Comprehensible Line Of Code I came across this month. Took me a while to make sure it really did what I thought it did.
my @array; # ... @array = map {$_;} (@array, keys %{$this->{'someobject'}->get_some_hash_ref()});Bon…
-
Commented on YAPC::Europe Day 1
You were the perfect host for the lightning talks and nothing went wrong. So there you go....
-
Posted What Moose is doing to my nose to confuseAcat
It's only been a couple of months since I've been using Moose, but it is already changing the way I read code. Of course, it changed the way I write code in a very short time, but I was surprised when I realized that it also changes the way I…
-
Commented on Minimizing script startup overhead
Before I go ahead and change "use" into "require", I go and buy new hardware. If a change like that really makes a difference, you should either optimize the module being used/required or admit that you are working on hardware...
-
Commented on Perl testing with Jenkins/Hudson: avoiding some pitfalls
Nice one, Nathan. Thank you! I had a feeling that you can control that somehow....
-
Commented on Looking up the location of an IP address
Interesting! But what about IP v6 addresses? They are rarely seen now, but if you decide on a system to geo-locate IP addresses now, I think you should seriously think about them....
-
Commented on Perl testing with Jenkins/Hudson: avoiding some pitfalls
Oh, yes, it does! Thanks for the heads up. I will have to give that one a try....
-
Posted Perl testing with Jenkins/Hudson: avoiding some pitfalls to confuseAcat
Having continuous integration is incredibly helpful and setting up a Jenkins server is surprisingly easy. However, configuring Jenkins to run your Perl unit tests is a wee bit harder, although it may seem easy at first. Here are a couple of issues I ran into and some things I learned:
We a…
-
Commented on Logging wide characters with Log4perl
Wow. Nice. I know I will need this someday. Bookmarking it now....
-
Commented on Directory size calculator
Well, you are not closing the directory handle that you opened. It works, yes. Because in this case the call to closedir is superfluous. To be totally explicit: you are opening DIR, but you are closing dir....
-
Commented on Allowing anonymous comments
Sorry, but there is no way I could resist this great opportunity. ... wondering if there is any correlation between allowing anonymous comments vs logging in. Yes, there is! And it's exactly -1....
-
Commented on Directory size calculator
Do you really think this works like you think it does? opendir (DIR, $dir) or die "failed to open:$!"; ... closedir(dir);...
-
Commented on Seeking: Module to plot Perl class hierarchy
Try GraphViz::ISA::Multi (http://search.cpan.org/perldoc?GraphViz::ISA::Multi). I haven't used it in a long time, but when I did, it worked ok....
-
Posted Can we afford bad code on blogs.perl.org? to confuseAcat
If you have a regular look on blogs.perl.org, you will have noticed a certain newcomer around here who keeps posting uncommented Perl scripts. I don't mind a noob asking stupid questions. Heck, I don't even think that noobs can ask stupid questions. But can the Perl community afford to have…
-
Commented on Show Perl subname in vim statusline
Nifty! Now if we could get petdance to include that snippet, we might see the first 2011 commit here: https://github.com/petdance/vim-perl...
-
Commented on Method Extraction in Vim
Oh. Indeed. As always, reading the source helps quite a bit....
Comment Threads
-
paul.seamons commented on
Perl and self flagellation...
I agree 100% with rlauer and Dave Shultz. The problems "modern" perl solves are interesting problems, but they are academic problems. They are not the problems I have seen actually be relevant in any of my own business scopes which I have been involved in during my short 16 years of Perl experience.
As I see it, the large "Modern Perl" tools that you are complaining about pretty much all exist to make code easier to understand and maintain than older Perl code.
I think you are correct in assessing why they exist. However just because they set out with the goa… -
David Shultz commented on
Perl and self flagellation...
That is very sad indeed, you seem to have had a different view back in 2011 when responding to a post by chromatic about civility (or a lack there of) in the Perl community. I encourage you to come back to the fold of treating people with respect regardless of their level of "desire to learn", it seems to me deciding how to treat someone else based on the desire to learn might say more about you then then other person.
-
David Shultz commented on
Perl and self flagellation...
Very well spoken, thank you for your input.
-
Zak B. Elep commented on
Perl and self flagellation...
Modern Perl may be academic, but that's exactly what makes it interesting: "academic" solutions bring an altogether other perspective on solving problems. It is an expression of TMTOWDI, something that ought to be welcomed rather than scorned. I'd rather see the language and its thinking process grow fruitful in novel academic solutions than stagnate in congruent practicality.
-
vsespb commented on
Perl and self flagellation...
> Database code written with DBIx::Class is easier to understand that the equivalent code written using DBI and raw SQL.
It's true only for some cases. ORM has advantages and disadvantages, for complex applications plain SQL is
easier (and just cannot be combined with ORM)
> Web applications written in Catalyst, Dancer or Mojolicious are easier to maintain that the equivalent code written as a series of CGI programsIt's not true when you're writing something complex, non standard. Actually when you writing something else than "classic" website.
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.