On Jun 25, 1:46 pm, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:

> To me, this code is redundant but not wrong:
>
> def sin(x):
>     return math.sin(x)
>
> It's not wrong, because it does everything that it is supposed to do, and
> nothing that it isn't supposed to do.

I told you, redundant/useless/misleading/poor code is worse than
wrong: wrong code
speaks (you see the bug, you have no choice but to fix it) whereas
redundant
code is silent: you see how damaging it is only when doing
maintenance, i.e. too late,
so it tends to perpetuate itself forever (whereas a bug *has* to be
fixed, otherwise
the application does not work).


   Michele Simionato

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to