From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 100159,805e0071ac25e02c X-Google-Attributes: gid100159,public X-Google-Thread: fc89c,805e0071ac25e02c X-Google-Attributes: gidfc89c,public X-Google-Thread: fcda7,805e0071ac25e02c X-Google-Attributes: gidfcda7,public X-Google-Thread: 11035d,805e0071ac25e02c X-Google-Attributes: gid11035d,public X-Google-Thread: 115614,805e0071ac25e02c X-Google-Attributes: gid115614,public X-Google-Thread: f6653,805e0071ac25e02c X-Google-Attributes: gidf6653,public X-Google-Thread: fee84,805e0071ac25e02c X-Google-Attributes: gidfee84,public X-Google-Thread: 10650a,805e0071ac25e02c X-Google-Attributes: gid10650a,public From: wilson@smd3.jsc.nasa.gov (Paul T. Wilson) Subject: Re: best UNIX OS as primary platform for UNIX system software develpoment? Date: 1996/09/06 Message-ID: #1/1 X-Deja-AN: 178894464 distribution: inet references: <4v2j4b$2bs@knot.queensu.ca> <32189D13.3834@arborsoft.com> <5050gc$1fc@nntpa.cb.lucent.com> <322C385A.1AB4@noran.com> organization: Lockheed Martin Engineering & Sciences newsgroups: comp.unix.solaris,comp.sys.sun.misc,comp.sys.hp.hpux,comp.unix.internals,comp.unix.programmer,comp.unix.aix,comp.unix.osf.osf1,comp.sys.sgi.misc In article <322C385A.1AB4@noran.com>, Chuck Dillon wrote: >mib@ppe.bb-data.de wrote: >> >> wjjr@sapphire.alisa.org (John J. Rushford) writes: >> >> > sizeof(int) == sizeof(long) is true on a lot of UNIX platforms not just Linux >> > or Solaris x86 and has been for a long time. Just curious as to why you use >> > this criteria to judge which OS to use. >> >> Take another look at the subject. For primary development, use the >> platform that is most unforgiving when it comes to coding errors, and >> port to more lenient platforms. The other way around it is a nightmare (believe >> me--I've been there). Two of the most frequent coding errors in the >> UNIX developer community (precisely because it is, as you say, common >> to have int and long to be identical) is to confuse ints and longs, >> especially when it comes to passing parameters, mixing pointers, and >> *printf formats, and "tunneling" pointer values through int variables >> and arguments. Try porting a 100.000+ lines of code application laced >> with these bugs to Digital Unix *shudder*. If you code for dUNIX >> first, you'll catch these buggers up-front. Plus, you learn to avoid them. > >I would respectfully submit that you should not equate your development >environment with your test bed. If you force yourself to develop on >your 'most unforgiving' target environment you may significantly reduce >your productivity. A much better development environment could be >available on another system. Development of portable code is a matter >of discipline. I would agree that your 'most unforgiving' target should >be the first one tested against. If the system passes that test it should >work on less 'unforgiving' systems. Your development environment can and >should keep you from developing non-portable code as defined by your >coding standards regardless of what platform it runs on. > >I don't mean to argue against dUNIX or for any other system. Only to >point out that there are tradeoffs to be considered. My only comment to this Chuck is that in more than 18 years of programming I've yet to work with a "development environment" by which I assume you mean some capability that has some level of smarts and helps you create the program. As a programmer I still need to know that int != long. Indeed, being familiar with the differences between platforms provides the necessary heads up if you haven't developed "portable" code. Frankly, simply because portability was not a requirement much of the code I've written hasn't been "portable". But, believe it or not, it's been ported. The discipline necessary to practice correct ("portable") programming is not, IMHO, instilled by a "development environment". Not that I wouldn't like to program in one! -- Paul T. Wilson Programmer Guy (:-) Look, do you mind if we have an argument here? - Merlo Do you have enough mind for an argument here? - Marty