[squeak-dev] Re: Overrides. Evil. Need to do something with it.
Andreas Raab
andreas.raab at gmx.de
Wed May 5 15:35:52 UTC 2010
On 5/5/2010 8:12 AM, Bert Freudenberg wrote:
> On 05.05.2010, at 07:15, Igor Stasenko wrote:
>>
>> 2010/5/5 Stéphane Rollandin<lecteur at zogotounga.net>:
>>>> myMethod
>>>> <doNotOverride>
>>>
>>>> What you think?
>
> I think that's nonsense ;)
>
> Overrides are evil, period.
>
> I'd simply make loading an override a warning the user has to click through. That will teach package authors to not use them willy-nilly. For private use they could override the warning, but their users will probably be annoyed which is a Good Thing.
It's not that people don't understand that overrides are evil. It's
that, at times, if you want to ship something there is simply no
alternative. And yes, I *hate* them.
But if anything I'd push the responsibility the other way around. Show a
warning when you *commit* a package. That way the developer gets to see
it every time they save a new version and hopefully learn about it and
avoid it in the future. Punishing the user of a package doesn't sound
like a good idea to me.
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|