autarch.urth.org
- Website: autarch.urth.org/
- About: I blog about Perl.
Recent Actions
-
Commented on SelfLoader and things I've learned writing/using a debugger
That eval doesn't work either: use v5.14; if (0) { eval { sub foo { 42 } }; } say main->can('foo'); You'd either need to use a string eval _or_ you can use a glob assignment: use v5.14; if (0)...
-
Commented on I love pre-modern Perl and so should you, my introduction
If all you use Moose for is _exactly_ the same things you did in Class::MethodMaker, I can see how it'd end up more verbose. However, Moose adds a number of useful features, such as type checking, predicate methods, etc. The...
-
Commented on I Bless You in the Name of the Stringified Object
I will add this to the list of reasons I hate Perl 5's incredibly broken overloading (especially for strings and numbers). Patches for DateTime would be very welcome. I think it'd make sense to have the constructor explicitly check to...
-
Commented on CPAN modules that (can) load other modules
You can use Module::Implementation for more than just Pure Perl or XS. It's useful any time you want to provide a given interface with 2+ possible backends. For example, you might try loading different per-OS implementations of an API (like...
-
Commented on DBIx::DataModel - Elegant Database Interaction with Perl
@Peter: I think the complexity is just the whole conceptual framework that comes with DBIC, in particular the whole resultset and chaining bit. This isn't like other Perl ORMs and it's not like SQL either. I think that it's like...
-
Commented on YAPC::NA 2013 (Austin, TX June 3-5) Update
I hate to be a downer, but you really have about 35 users so far. This is one the things I really hate about ACT. People can "register" without actually register. When you create an act account, there's a separate...
-
Commented on YAPC Presentation Recordings
There's already www.presentingperl.org. I'm not sure exactly who maintains it, but besides the fact that I can't read any of the text, I think it does what you want ;) I suspect that the site could be improved, and in...
-
Commented on Names and Numbers, Brand and Identity
I like the idea of Pumpkin Perl being the new name for the Perl 5 language. That opens up the possibility of something like Moe Perl 1.0 for a Perl5++. And what about Perl 6? I'd love to see it...
-
Commented on Bringing Perl5 to GitHub
I like the idea of doing this. Perl 5 has gotten easier to contribute to over the years, but this would make it even easier. That said, the core is still going to be an impenetrable mass of C and...
-
Commented on About the Grants Committee
I think the grant limit is an issue. I have projects I could submit, but I think they'd take too much of my time, and $3,000 just wouldn't cover it. Basically, I think I'd need to be able to take...
-
Commented on perl.jobs summary for 2012
I wrote the stats code for jobs.perl.org a million years ago. It's broken for reasons I don't exactly remember. It's something about the way the job posting date is changed when a job is updated, I think....
-
Commented on The shit of booking.com
JT is right on here. You should delete this. It's not going to help you. I think the right way to handle this is to just publicly announce that you're leaving Booking. If someone is considering working for Booking, they...
-
Commented on Why People Don't Like Mojolicious
@Steven: I think the main limitation with hosting providers is complete lack of shell access. You install stuff by FTPing it over to the host. This rules out XS, but a fatpacked app with many non-XS deps should work (in...
-
Commented on This is not tolerated
Just to play devil's advocate a little, you write that one must "[understand] that boob jokes are disgustingly sexist and objectify women". This statement (and similar ones that often come up) threatens to drag the whole discussion way off topic....
-
Commented on YAPC::NA!
If you're interested in doc work I think Moose could really use someone who's not me to read the manual start to finish and suggest improvements. When I wrote it, I was more of a Moose n00b than I am...
-
Commented on YAPC::Asia Tokyo 2012 Best Walk Awards!
I honestly think this prize would be wasted on a speaker who's coming from the US or Europe. It's a great way to encourage the Asian Perl community to form closer bonds with the the American and European Perl communities....
-
Commented on YAPC::NA 2012 Schedule Final
Lightning, not lightening....
-
Commented on On defined(@array) and defined(%hash)
Could you be less rude, please? You may have some good points, but your nastiness makes reading your blog posts really tiring....
-
Commented on Archive::Tar::Wrapper vs. Archive::Tar
Archive::Tar can be a real problem. A while back I patched dzil to use Archive::Tar::Wrapper if it's installed. This seems to make a difference for distros with a lot of files, like Moose. It'd be nice to have an Archive::Tar::Any...
-
Commented on MOPing with Moose
It's entirely possible to add new types of meta-information to a metaclass. My Fey::ORM module provides two metaclasses (Fey::Meta::{Table,Schema}) that do this. I'll probably rewrite those classes as traits, but the basic idea remains the same....
-
Commented on Can we afford bad code on blogs.perl.org?
Yes, it can. We want to encourage people to use Perl and talk about Perl. A "no bad code on your blog" rule would make that very difficult....
-
Commented on The coming bloated Perl apps?
@educated_foo: That's a pretty ridiculous straw man. I'm not telling anyone to use Moose. I'm saying that I will choose to use it or not based mostly on whether it makes my life easier, not Steven's or anyone else's. I...
-
Commented on Improving the CPAN experience (a GSoC summer tale)
There's lots of interesting features listed here, and I know you've read my blog post where I talk about what a search.cpan replacement should do. I'd encourage you to think of this from a high level before you get too...
-
Commented on Does breaking encapsulation indicate the wrong type of hammer?
@Joel: You say "I believe that people are not able to visualize what their code signifies until they appreciate the underlying reality." So you weren't able to understand Perl object until you understood hash refs, but you weren't able to...
-
Commented on The coming bloated Perl apps?
Regarding File::ChangeNotify, I *did* know the cost of using Moose for this library. F::CN was written to replace code in the Catalyst-Devel distro. In that distro, it's part of the system that watched the development directory and restarts the dev...
-
Commented on Converting Module::Install prereqs to Dist::Zilla with elisp
Have you looked at Dist::Zooky on CPAN? I find it does a pretty good first pass....
-
Commented on Multiple packages in one file
The Perl standard is that a package name matches a file name (with s{::}{/}g) and that each package name corresponds to a single file. Of course, as with anything in Perl, it's a loose standard, but I think if you...
-
Commented on Your benchmarks suck!
This looks really cool, but there's an even deeper underlying problem with many benchmarks. I regularly see benchmarks posted that don't even measure the right thing. That's not really a problem that can be fixed with code, though ;)...
-
Commented on No More Excuses
Releasing is only one part of the problem. Dzil certainly helps, but it takes a fair bit of work to grok it and get started with using it. However, the other problem is repository management. If you're neck deep in...
-
Commented on How do you run your daemons?
I write a custom init script. See http://cpansearch.perl.org/src/DROLSKY/Silki-0.12/eg/ubuntu-init.d/ for an example....
Comment Threads
-
matthew.persico commented on
I love pre-modern Perl and so should you, my introduction
Here's my decision tree:
- If you have an enterprise-level system and need to coordinate a lot of developers, use Moose/Moo as functionality dictates.
- If you are in between, size-wise, you'll have to balance execution speed vs development time/talent.
- If it's a CPAN module that's self-contained, use core as much as possible. That way the dependency chain for installation is not overbearing.
- If it's a CPAN module that's meant to be extended …
-
rockyb commented on
SelfLoader and things I've learned writing/using a debugger
While this is good and I applaud such a change it shows another unflattering aspect with Perl that is alluded to in this blog entry and in one of my replies about not discussing the
INIT,UNIT, sections: Perl is ever getting more complex with features that overlap in function. Let's face it, features get added much faster than old less-good ones get removed.So for a long time (or forever) there will be code that eval's with a string and some other code that uses lexical subs. And programmers will be faced with having to know both and consider if the code t…
-
David Shultz commented on
I love pre-modern Perl and so should you, my introduction
I'm completely with you Matthew, I agree that each person/team should pick the tools they are comfortable with and knowledgeable about.
I haven't had any issues with C::MM myself in relation to list vs scalar context of arrays but that doesn't mean it's not an issue for many others.
My primary goal is to blog about current solutions to current problems without Moo(se), not because there is anything wrong with Moo(se), simply that Moo(se) is far from the only way to solve these problems. Moo(se) already gets more then it's own time in the sun, I just want to remind peopl…
-
Aristotle commented on
SelfLoader and things I've learned writing/using a debugger
“Perl is worse than Python because people wanted it worse.”
—Larry Wall, in <7039ji$mtk@kiev.wall.org> -
Rebecca commented on
SelfLoader and things I've learned writing/using a debugger
Rather then the eval, I'd use a closure:
...
if (caller()) {
# demo code section.
my $ack = sub { $_[0] ? 'yep' : 'nope' };
... $ack->(MyModule::does_this()) ...
}
The only time I'd use an eval or mucking with globs like above is if I were doing something like injecting a mock subroutine into code that wasn't otherwise very testable.
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.