Path: utzoo!mnetor!uunet!mcvax!enea!ttds!draken!d86-ctg From: d86-ctg@nada.kth.se (Claes Thornberg) Newsgroups: comp.lang.c Subject: Re: How not to write a loop Message-ID: <296@draken.nada.kth.se> Date: 26 Feb 88 18:14:20 GMT References: <560@naucse.UUCP> <1988Feb11.200149.25172@sq.uucp> <2115@bsu-cs.UUCP> Reply-To: d86-ctg@nada.kth.se (Claes Thornberg) Organization: The Royal Inst. of Techn., Stockholm Lines: 17 Keywords: A simple recommendation for all hackers(?) writing programs. Even though your program is 'running' on the machine you are using now, please think a little about compatibility. When giving away programs, which I encourage you all to do, there may be a lot of machine dependent bugs not doing this, and it is frustrating trying to locate these in a program you haven't written yourself, especially when you know the program worked when you got it. And thinking of simple things like not using real variables in for-loops isn't that hard, I think I was told not to do this in my very first programming class. So all you hackers using obscure features that works on only a few machines, please spare us the time it takes to locate bugs that shouldn't exist. Yours in hacking, Claes Thornberg The Royal Institute of Technology, Stockholm Sweden