Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rti-sel.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!mcnc!rti-sel!shaddock From: shaddock@rti-sel.UUCP (Mike Shaddock) Newsgroups: net.lang.c Subject: Re: more about programming style Message-ID: <287@rti-sel.UUCP> Date: Thu, 11-Jul-85 12:18:33 EDT Article-I.D.: rti-sel.287 Posted: Thu Jul 11 12:18:33 1985 Date-Received: Sat, 13-Jul-85 12:14:54 EDT References: <11457@brl-tgr.ARPA> Reply-To: shaddock@rti-sel.UUCP (Mike Shaddock) Organization: Research Triangle Institute, NC Lines: 25 Summary: In article <11457@brl-tgr.ARPA> DHowell.ES@Xerox.ARPA writes: >Ok, let me clarify a few things here. By "idioms", I mean a piece of >code in a language which can be directly translated into another piece >scenario. > ... (Some stuff here) >wanted. Therefore I must look at the code ("Foul", I hear you say. >"What are you doing looking at his code; you're not an experienced C >programmer!" Well who else can look at it, if the programmer can't fix >it himself? At least I know what I want done). The program turns out > ... (Some more stuff). I don't know about you, but I don't jump into programs written in a language that I don't know without first either learning a little about the language or having someone help me through the program. Anyone who took ten minutes to learn something about C would know what "stuff++" did, and wouldn't ignore it. As for the comments (not made by DHowell, I'm just concatenating followups) about experienced C programmers, how many people put non-experienced C programmers on a big project? If they don't know a language, they shouldn't be mucking with the code! This applies to any language, not just C. Most of the common "idioms" (((fp = fopen()) == ERR), i++) are not that hard to understand. This doesn't mean that I advocate using every trick in the book, I'm just saying that using the "idioms" of a language is not so bad. -- Mike Shaddock {decvax,seismo}!mcnc!rti-sel!shaddock