in reply to Re^4: The beauty of MMD
in thread Perl 5's greatest limitation is...?
I happen to believe that it should be very clear what a given subroutine does. That gives me an admitted bias against MMD, because the job of MMD is to make it easy to have subroutines which are ambiguous, they do lots of different things depending on input. However I accept that there are cases where you do need polymorphic behaviour. What I'm not convinced of is that it is worth using MMD to provide that behaviour.
Depending on the exact problem, I'm happy to not have accessors at all in OO code. Or if you do want accessors, I'm happy to name getters and setters differently. Certainly your example doesn't give me a burning desire to use MMD.
Now perhaps you don't think, You're adding a lot of complexity and I don't think you're getting much for it is a valid argument. In which case I don't quite know what to say. We are supposed to be in the business of managing complexity, not creating more because it is fun.
On the other hand perhaps you think that we are getting a lot for the complexity. I don't see the wins as being significant, but we may just have different opinions on that. In which case that is fair, people do not have to agree on everything. Perl always had the attitude that it should be a big language, and people can just pick a subset that is comfortable for them.
But I'm still puzzled at why so many seem to be so enthused about MMD, and consider it a critical missing figure. Because I obviously don't "get it" at all.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: The beauty of MMD
by Tanktalus (Canon) on Jul 31, 2005 at 02:02 UTC | |
by adrianh (Chancellor) on Jul 31, 2005 at 17:11 UTC | |
by chromatic (Archbishop) on Jul 31, 2005 at 07:26 UTC | |
|
Re^6: The beauty of MMD
by fizbin (Chaplain) on Aug 06, 2005 at 10:50 UTC |