From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,b0b9a5eaad4ab6eb X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,b0b9a5eaad4ab6eb X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,b0b9a5eaad4ab6eb X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,b0b9a5eaad4ab6eb X-Google-Attributes: gid102b75,public From: Sean Burke Subject: Re: Wildfire and NT Date: 1998/02/24 Message-ID: <34F3B7C5.5FD1@earthlink.net>#1/1 X-Deja-AN: 328423509 Content-Transfer-Encoding: 7bit References: <6csl81$rb9@news-rocq.inria.fr> Content-Type: text/plain; charset=us-ascii Organization: Yoyodyne, Inc. Mime-Version: 1.0 Newsgroups: comp.sys.dec,vmsnet.alpha,comp.arch,comp.sys.intel brianh@bit3.com wrote: > > In article <6csl81$rb9@news-rocq.inria.fr>, > Robert Harley wrote: > >brianh@bit3.com writes: > > > >>Don't overestimate the importance of the personal computer experience. > > > >It all depends on what was derived from that experience: one guy will > >have acquired "the right stuff" while another will have memorized some > >Windoze API... > > I held a lot of the same opinions in my younger days that a lot of the > young hackers hold. For example, comments are for dweebs who can't read > code. And then I encountered the Real World (tm). And had several > epiphanies. Nevertheless, I think there have been some tangible changes in coding style over the last few years. Back in the eighties, good programming meant getting the most out of arrays. For fast access and low overhead, you just can't beat 'em. The BSD kernel had a fixed set of proc entries, the C library had bsearch() and qsort(). If you did a code walkthrough, people would point out calls to malloc(), and tell you it was an expensive call. Header files had constants for MAX_NUM_this_or_that, and programs had configuration files where you sized various tables. Today, we use malloc'ed objects, storing the pointers in linked-lists, btrees and hash tables. These data structures come with a lot of overhead both in space and time - malloc overhead, pointer-indirection, etc. But they are more flexible than arrays, and in modern systems, the overhead just isn't often noticeable. One of the tenets of "modern" coding is to avoid any kind of fixed limitations in one's code. (I recently was annoyed to discover that a certain C compiler would not handle literal strings over 32K bytes - imagine! :^) Was the old style better? Well, there's nothing like running yesterday's software on today's machines - one reason the BSD system is so popular today. Perhaps our code will in turn be described as "lean-n-mean" by those who follow us. But don't bet on it. In the Mac world, the term "byte-squeaking pinheadery" has been applied to some of the brilliant coding that enabled the original MacOS to run in 128K. -SEan (Think about it - OS, window system, and even space left to run a simple word processor, in 128K! Boggles the mind, doesn't it? )