From owner-freebsd-questions Thu Jan 17 0:37: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.atkielski.com (ASt-Lambert-101-2-1-14.abo.wanadoo.fr [193.251.59.14]) by hub.freebsd.org (Postfix) with ESMTP id A66EE37B405 for ; Thu, 17 Jan 2002 00:36:59 -0800 (PST) Received: from contactdish ([10.0.0.10]) by freebie.atkielski.com (8.11.3/8.11.3) with SMTP id g0H8aoB04109; Thu, 17 Jan 2002 09:36:51 +0100 (CET) (envelope-from anthony@freebie.atkielski.com) Message-ID: <015701c19f32$1d330a70$0a00000a@atkielski.com> From: "Anthony Atkielski" To: "Mike Meyer" Cc: "FreeBSD Questions" References: <15428.34332.870130.2946@guru.mired.org><00cc01c19e06$8dafddf0$0a00000a@atkielski.com><15428.38970.224790.33804@guru.mired.org><00ee01c19e0d$4c518960$0a00000a@atkielski.com><15428.53337.168408.720031@guru.mired.org><01b301c19e55$f11330a0$0a00000a@atkielski.com><15429.45776.491932.646543@guru.mired.org><007201c19ed4$e98bc070$0a00000a@atkielski.com> <15430.11292.89340.470262@guru.mired.org> Subject: Re: USB CF reader (SanDisk) epilog Date: Thu, 17 Jan 2002 09:36:51 +0100 Organization: Anthony's Home Page (development site) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike writes: > All the information on how the software works > is contained in the code. All the information on how to cure cancer is contained in a strand of DNA, but looking at DNA thus far has not provided a cure for cancer, and it is probably not the most efficient way to go about finding one, even though it is guaranteed to provide a solution at least in theory. Similarly, a core dump of the software will tell you exactly how it works, too, but here again, it is not practical to try to learn how a program works by reading machine language in a core dump, despite the theoretical (and actual) 100% completeness of what the dump contains. > As to writing readable code, there are two > approaches that have proven successful. The only approach I've seen that works is hiring highly competent programmers. Object-oriented programming (and structured programming, and all the other fads that have passed through the software engineering community over the history of computing) never really accomplish what they promise, unless they are practiced by skilled programmers--but then again, skilled programmers always produce readable code, anyway, even if it is in assembly language. > The web is not the code. The Web is more cost-effective than an examination of tens of thousands of lines of code, and the code will not tell me everything I'd need to know (such as how the USB standard works). > cd /usr/src/sys; find . -name '*.[ch]' | xargs > grep -l