But we've had Perl Enterprise Edition, and Best Practise Perl, and now Enlightened Perl, and Modern Perl...
A wise man (who I'll credit because I'm too lazy to do the research) once said that the definition of "Best Practice" is generally "My Practice".
I like the idea of a definition for some kind of better thing, but what prevents the idea becoming a temporary fad. What gives this one sticking power.
Sticking Power (Score:1)
I think many well-versed Perl hackers can agree that using lexical filehandles is better than passing around raw typeglobs, and that
given/whenis better than long chains ofif/elsestatements. I'm pretty sure that most of us can agree that a novice Perl programmer should look to the CPAN to solve common problems.I'm sure that the definition of "modern" will change over the coming years, but I'm also sure that just as we can look at a piece of code which uses global variables (with perhaps a
localor two tRe: (Score:1)
I like the idea of a sort of "Strunk and White" [wikipedia.org] for Perl.
The way I see this project as different in intent from PBP is that it can be less dogmatic about what is "best" (highly contextual and often idiosyncratic) and yet dogmatic enough about what is "good" (generally accepted) to be a reference for minimum standards or expectations.
-- dagolden
Re: (Score:1)
That's a nice metaphor. Do you mind if I borrow it?
Re: (Score:1)
Please do.
Re: (Score:1)
Only if you want all the linguists in the room to huff and go on a rant [upenn.edu] about the “shallow grammar-bossiness and vapid style-mongering” [upenn.edu] of Elements, which therefore seems to be analogous more to PBP than to this Modern Perl endeavour. (I would not want to offend Damian so badly as to say it is directly analogous.)
Re: (Score:1)
If you thought arguments about programming languages were shallow and meaningless, you don't know any academics!
With all due respect to everyone who hates prescriptivism, I'll put on my professional editor hat and say that a gentle dose of Strunk and White could improve the majority of writers with whom I've worked (and anyone who turns into a petty linguistic dictator after reading Orwell was already a petty dictator).
Re: (Score:1)
It’s not like they merely trash Elements without ever suggesting a better alternative [upenn.edu].
Re: (Score:2)
Re: (Score:1)
As I'm not British, I'll stick with the The Columbia Guide to Standard American English [amazon.com], thank you. :-)
N.B. It's great fun using it to rebut language pedants at work.
And the alternative is ... (Score:2)
We see lots of creative people pouring heart and soul into Perl. The alternative might be lots of creative people ignoring Perl. I certainly know which I prefer.
The fact that so many people are working on these issues makes me happy.
Nothing, that's what makes it dangerous. (Score:1)
There is nothing that the EPO is doing that couldn't be done by others, but it can be said that the difference between a successful entrepreneur and a failure is simply doing it.
If the EPO fails and collects dust, some will say that it is a failure. I'll view it as a learning experience about what to fix the next time something comes around.
Also, my focus on EPO is to help Perl's external facing image. The EPO Extended Core is good for the various Best Practiceâ„¢ stuff, but the market
Killing two stones with one bird.
The issues are... (Score:1)
So how are Modern Perl and Enlightened Perl different from the other similar initiatives?
PBP was the first real step in the direction of "modernizing" Perl. It was a book that showed people that Perl isn't a toy, and isn't a "write-only" language. (Unfortunately some of the advice in the book was just wrong, like using Class::Std. What?)
(I have never heard of Perl Enterprise Edition, and I am no marketing expert, but somehow I don't think "pee" is the way to make Perl popular again. Although it would pa
Perl Cookbook (Score:2)
To be fair, the 2nd Edition of the Perl Cookbook came out in 2003, but I get the point you were trying to make.
Re: (Score:1)
Why does it have to be different than previous efforts? I'd say that PBP was a success, and whoever writes a book now can try to both tie to its success, and learn from its failures.
I'd say that a newly revised PBP with a more technical focus could also be a success.
Re: (Score:1)
I don't want to define best practices. I want to explain how Perl works and how to write good Perl code in 2009 taking advantage of the best features of the language and our ecosystem as it stands right now.
Re: (Score:1)
What makes that different from what's called "best practice"?
Re: (Score:1)
In general? I suppose little.
PBP attempted to define some best practices where consensus is murky. That's fine. My goal with Modern Perl is just to teach people how to think to write good Perl, not to create coding standards.
PBP is great, but it's sad it is needed (Score:1)
-- Ed Avis ed@membled.com
Re: (Score:1)
Re: (Score:1)
-- Ed Avis ed@membled.com
Re: (Score:1)
If you think there is any programming language that is not like this, you have not used that language long enough.
Anything can "trip up" programmers that don't know how to program. The semantics of local are quite clear. (Dynamic binding versus my's lexical binding. Not hard.)
Re: (Score:1)
There's something deeply wrong with a software development process that enshrines deliberate obfuscations in the core test suite.
I don't accept the counter-argument "They test features not tested elsewhere", not in the least because I've added tests for features not otherwise tested (and my tests tend to be somewhat
Re: (Score:2)
I suspect that the deliberate obfuscation tests are necessary due to Perl's heuristic parsing. With Perl 6, I doubt there would be as much of a need for them.
Re: (Score:1)
Oh, having dynamically scoped variables is very useful and not difficult to understand. I was referring to the semantics of 'local $x;' in particular. What does that statement do? Is it useful and clear, or is it a fairly useless behaviour and a gotcha for the unwary? PBP makes a good argument for the latter.
-- Ed Avis ed@membled.com
Re: (Score:2)
A lot of folks out there are looking for an ORM. If they're not, hopefully they already know about DBI and don't need help from EPO on that one ;)
For those folks looking for an ORM, having some standard somewhere say "use this one" isn't a bad thing.
And note that I say this as the author of a competing ORM ;)