From owner-freebsd-hackers Wed May 8 22:46:13 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gw.gbch.net (gw.gbch.net [203.143.238.93]) by hub.freebsd.org (Postfix) with SMTP id A795737B498 for ; Wed, 8 May 2002 22:46:01 -0700 (PDT) Received: (qmail 82006 invoked by uid 1001); 9 May 2002 15:45:59 +1000 X-Posted-By: GJB-Post 2.26 06-May-2002 X-Operating-System: FreeBSD 4.2-RELEASE i386 X-Uptime: 119 days, 22:03 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-GPG-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-PGP-Public-Keys: http://www.gbch.net/keys.html Message-Id: Date: Thu, 09 May 2002 15:45:59 +1000 From: Greg Black To: Ian Cc: freebsd-hackers Subject: Re: /usr/include/netinet/in.h References: In-reply-to: of Wed, 08 May 2002 13:09:14 CST Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ian Noname wrote: | > The general rule is "including includes from includes is bad". | | Okay, it's time to point out that these are opinions, not rules, and | differing opinions exist. There's no shortage of opinions. They are like arseholes: everybody has one. But there are rules that have been carefully worked out by people who have put a lot of time into them, and those rules are documented in the man pages for each interface in the system. A programmer who can read can get this stuff right without even rasing a sweat. | My opinion is that if a given header file requires some aspect of another | interface, that header should (nay, MUST) include what it needs for itself, | rather than relying on something external to "do the right thing". Why | require thousands of programmers to remember all these interdependancies as | opposed to one programmer encoding the depenancy once where it belongs and | then everyone else can get on with their life and get some real coding done. Why require programmers to learn their craft? Why ask them to waste their precious time gaining basic proficiency? Why expect them to bother to read the fine manuals for the interfaces they feel inclined to use? Get a grip -- programmers ought to be competent at this stuff, especially when it must be just about the simplest thing they need to learn. | Programmer since 1972 | C programmer since 1985 Not yet a C programmer if the above is the best you can do. | Demagogue since... well, as long as I can remember. :-) No comment. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message