Re: ioctls, etc. (was Re: [PATCH 1/4] sas: add flag for locally attachedPHYs)

From: Luben Tuikov
Date: Mon Oct 24 2005 - 08:53:59 EST


On 10/22/05 13:19, Christoph Hellwig wrote:
> On Sat, Oct 22, 2005 at 11:28:30AM -0400, Sergey Panov wrote:
>
>> It is a mistake to think that you can not do a big rework and keep SCSI
>>sub-system stable. You just have to make sure the OLD way is supported
>>for as log as it is needed.
>
>
> No. Rewriting something from scratch is horrible engineering practice.

Off Topic:
Discourse on Christoph's "Rewriting something from scratch
is horrible engineering practice"

Christoph,

Imagine a for ( ) { } loop spanning 5000 lines. Imagine never using
functions to separate things. But imagine that a _factory_ is using
this code on its production line and that code, although badly written,
does work and keeps the production line going and thousands of
people working.

They hire an engineer to make it _managable_ and supportable -- this
warrants understanding the production line, what the code does, what it
controls and how. Understanding how the factory workers use it and what
they expect. Understanding the code (which may not be as easy). Then it
is rewritten so that it can be easily supported and maintained.

This is real life example.

Luben
--
http://linux.adaptec.com/sas/
http://www.adaptec.com/sas/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/