in reply to Using ArrayRef data members in Moose
This does bring up an interesting question - how much of this do you really want Moose to do? This isn't idle speculation, either. I wrote some of the initial pieces of Moose with stvn and I think it's a phenomenal piece of work and should be used by most people in most places. Except, I've never used it in either work, OSS, or play. Part of that is I am completely comfortable with Perl's OO systems, having written about 4 myself and debugged several others. Part of that is that most of my work predates when Moose was actually usable. Part of that, though, is that I just don't drink that much koolaid. At some point, the syntactic sugar just gets to be too much and it's just simpler to go to another language like Ruby, Python, Javascript, or Smalltalk. Even stvn would agree that some of the really esoteric bits of Moose aren't ever going to be usable. Sometimes, a blessed hashref with cut'n'paste mutators is the right way to go.
I'm not arguing against frameworks. I love them. I'm just saying that sometimes, a framework is inappropriate and you should learn to tell when that is.sub foo { my $self = shift; $self->{foo} = shift if @_; return $self->{foo}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using ArrayRef data members in Moose
by TGI (Parson) on Jul 02, 2008 at 00:22 UTC | |
|
Re^2: Using ArrayRef data members in Moose
by stvn (Monsignor) on Jul 03, 2008 at 02:33 UTC | |
|
Re^2: Using ArrayRef data members in Moose
by spacebat (Beadle) on Jul 04, 2008 at 03:11 UTC | |
by stvn (Monsignor) on Jul 04, 2008 at 03:32 UTC | |
by parv (Parson) on Jul 04, 2008 at 04:51 UTC |