News for hackers. Stuff that matters.
Re:Comparing PHP, Perl, Python and Ruby by jrockway on Tuesday February 28, 2012 @07:46PM (#3645853)
I agree with another comment in reply to yours that this is a tired argument.

But ignoring that; someone who is new to programming is not going to understand the value of any of these concepts anyway, so it doesn't matter that they don't discover them immediately. At about the same time people figure out how to do OO cleanly, they will start hearing about libraries too.

If you were to navigate a largish Perl codebase today, you'd encounter the old-school bless, Moose trickiness, and all kinds of variants on these themes. Extremely clever stuff that Damian Conway would give you a gold star for.

I've worked on a number of post-Moose codebases, and most people did the conversion cleanly and all at once. (I can't explain it, I'm just reporting the facts. I was surprised too.) The biggest Moose-hacking pain point I've seen was someone trying to subclass DateTime with Moose. It just doesn't work very well; DateTime is werid and Moose is weird. (Of course, the solution is delegation rather than subclassing. Even in languages with real OO, you often want a "does X interface by delegating to Y class" rather than "isa Y".)

Re:Comparing PHP, Perl, Python and Ruby by rjurney on Wednesday February 29, 2012 @01:45AM (#3646782)
Fork Perl 5, package it so that Moose is default, and call it Perl 7.
Re:Comparing PHP, Perl, Python and Ruby by aGHz on Wednesday February 29, 2012 @12:45PM (#3648794)
If you want Python, just use Python ("There should be one-- and preferably only one --obvious way to do it." - PEP 20). Very central to the Perl philosophy is that TIMTOWTDI (though I'm not sure if this is canonized anywhere as clearly as for Python), so your suggestion is ridiculous. I for one found the bless mechanics extremely enlightening with regard to the semantics of object orientation. The feeling I had when I first got that was akin to when I first realized "to be" lumps together the semantics of identity and attribution in the english language.