Path: utzoo!attcan!uunet!husc6!bloom-beacon!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP (der Mouse) Newsgroups: comp.lang.c Subject: Re: Efficiency AND Readability Message-ID: <1352@mcgill-vision.UUCP> Date: 15 Nov 88 09:38:33 GMT References: <141@twwells.uucp> <3386@geaclib.UUCP> Organization: McGill University, Montreal Lines: 27 In article <3386@geaclib.UUCP>, daveb@geaclib.UUCP (David Collier-Brown) writes: > A good counter-example to the claim that efficient code is unreadable > (and also the claim that its non-portable) exists in the TeX > typesetting implementation. > The author was concerned with all three, and so invented a language > (formerly called DOC, now WEB) to allow the three to coexist. > Regrettably, it works best for monstrous great books, not little > critical bits... Also regrettably, it's unreadable! Of all the serious code I've seen (ie, not including things like the Obfuscated C Code Contest), WEB code is easily the least readable. Why? Two big reasons come to mind. One is that what you see usually isn't what you're running: what the .web file contains doesn't correspond to the resulting binary. The change files were a nice idea, but rather misguided. The other is that it's impossible (err, I find it impossible) to keep it straight whether what I'm reading is commentary or code. Any given at-sign symbol seems to have at least four different meanings, depending on the phase of the moon and how I'm holding my mouth. English is usually commentary but sometimes isn't. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu