NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Re: Rafe's comments on Perl (Score:2, Insightful)
Re: Rafe's comments on Perl (Score:2, Insightful)
I also feel that the sample java code is even more obscure than the perl code. But maybe I've been hacking Perl too long. Neither extract is that good though. A correct implentation would have a nice function called count_slashes().
I seem to recall schwern using the phrase "sufficiently encapsulated magic". Here, I'd agree with him. By all means have nasty code. Just hide it away in a function with a nice name.
-Dom
Reply to This
Parent
Re: Rafe's comments on Perl (Score:1)
Piers Cawley did a nice lightning talk on "just" at a london.pm techmeet recently. The thrust was the same - you can hide as much technical complexity as you wish, if you are able to provide a nice, simple API
Re: Rafe's comments on Perl (Score:1)
-Dom