dragonchild has asked for the wisdom of the Perl Monks concerning the following question:
So, I set up a few classes and almost immediately run into a bug with C::MM 2.05. I patched my local version and continued on my way. No biggie - this happens all the time. Patching it was a little weird cause I've never worked with AutoSplit before, but that's ok - it never hurts to learn something new.
Now, here's where the politics of opensource and the politics of my employer start intersecting. I can't ask FLUFFY to speed up fixing my bug and getting it into a new release2. I also can't keep holding off the upgrade from C::MM 1.12 to 2.x. And, they won't install my patched version because it's not the official version.
To top it all off, I have an enhancement I really want added to make my coding life a lot easier. I mean, if that's not the whole point, why use C::MM in the first place? But, I wanted to run it past y'all first before bugging FLUFFY about it. I want to have an attribute that looks something like:
use Class::MethodMaker [ new => 'new', scalar => [ { -type => 'Some::Class', -default_ctor => 'new' }, 'some_class', ], ];
Now, I understand that whenever you do a get on some_class(), you'll get back a new Some::Class object, and that's the desired behavior. But, I want to be able to do
$object->some_class_reset(); ok( !$object->some_class_isset(), "I just reset the damn thing, so it shouldn't be set yet!", );
Except, C::MM has an optimization that says if a default/default_ctor is defined, the attribute is always considered to be set, even if it has just been reset. Is there a way around this without patching C::MM::scalar? And, if there isn't, does anyone have any advice for me on patching it? FLUFFY's code is downright scary. Very cool, but scary all the same.
And then, does anyone have any advice for me re: the office politics vs. the opensource politics? Does anyone have a good mailing list/forum for C::MM that has had more than 30 messages in the last 2 years?
Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.
|
|---|