Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <wilson-0609961055390001@pav.jsc.nasa.gov> (raw)
In-Reply-To: 322C385A.1AB4@noran.com


In article <322C385A.1AB4@noran.com>, Chuck Dillon <ced@noran.com> 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



  parent reply	other threads:[~1996-09-06  4:00 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-16  4:00 best UNIX OS as primary platform for UNIX system software develpoment? Jianlin Chang
1996-08-16  4:00 ` Ron Natalie
1996-08-17  4:00   ` Ping Huang
1996-08-17  4:00   ` Jianlin Chang
1996-08-19  4:00     ` Jeff Diewald
1996-08-19  4:00     ` James Youngman
1996-08-19  4:00       ` Jianlin Chang
1996-08-19  4:00     ` Bill Deegan
1996-08-20  4:00     ` Ron Natalie
1996-08-19  4:00   ` Jianlin Chang
1996-08-22  4:00     ` Jason C R Hill
1996-08-21  4:00   ` Richard Cognot
1996-08-17  4:00 ` David-Michael Lincke
1996-08-17  4:00 ` Andrew Gabriel
1996-08-18  4:00   ` Nick Sayer
1996-08-19  4:00 ` amk
1996-08-20  4:00   ` guest
1996-08-19  4:00 ` Matt Houseman x4408
1996-08-19  4:00   ` Thomas Graichen
1996-10-17  4:00     ` sukumar
1996-08-27  4:00   ` Martin Ibert
1996-08-29  4:00     ` Wojciech Galazka
1996-08-29  4:00       ` Scott G. Hall
1996-08-30  4:00         ` Jon Reeves
1996-08-30  4:00         ` R!ch
1996-08-30  4:00         ` Timothy M. Wieman
1996-09-01  4:00         ` John J. Rushford
1996-09-02  4:00           ` Pawel Wezgowiec
1996-08-29  4:00     ` Mike Miscevic
1996-09-04  4:00       ` Patrick Horgan
1996-09-02  4:00   ` mib
1996-09-02  4:00   ` mib
1996-09-02  4:00     ` Robert Lipe
1996-09-04  4:00       ` Tom Kelly
1996-09-03  4:00   ` mib
1996-09-06  4:00     ` Per Schr�der
1996-09-03  4:00   ` Martin Knoblauch
1996-09-03  4:00   ` Chuck Dillon
1996-09-03  4:00     ` Poll Dubh
1996-09-06  4:00     ` Paul T. Wilson [this message]
1996-09-09  4:00       ` Chuck Dillon
1996-09-04  4:00   ` Urs Thuermann
1996-09-05  4:00     ` Peter Gross
1996-09-05  4:00   ` mib
1996-09-05  4:00   ` Ronald Fischer
1996-09-06  4:00   ` mib
1996-09-06  4:00   ` Peter Mayne
1996-09-06  4:00     ` Eric Fischer
1996-09-09  4:00     ` Dan Pop
1996-09-11  4:00       ` Richard Tobin
1996-09-12  4:00         ` Lawrence Kirby
1996-09-13  4:00           ` Dan Pop
1996-09-15  4:00             ` Lawrence Kirby
1996-09-13  4:00         ` Marc Roussel
1996-09-13  4:00     ` David Mosberger-Tang
1996-08-22  4:00 ` Roger Binns
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox