home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!yale.edu!newsserver.jvnc.net!rutgers!cbmvax!cbmehq!cbmden!hemmer!hemmer
- From: hemmer@hemmer.adsp.sub.org (Franz Hemmer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: IntuitionBase
- Message-ID: <hemmer.03w7@hemmer.adsp.sub.org>
- Date: 25 Jan 93 18:49:24 GMT
- References: <hemmer.03so@hemmer.adsp.sub.org> <paulk.3emk@terapin.com>
- Reply-To: hemmer@hemmer.adsp.sub.org (Franz Hemmer)
- Organization: Interactivsion
- Lines: 32
- X-NewsSoftware: GRn-beta 1.16g (11.15.92) by Michael B. Smith & Mike Schwartz
-
- In article <paulk.3emk@terapin.com> paulk@terapin.com (Paul Kienitz) writes:
- > > ...which makes your sources quite difficult to read for other
- > > people. You really should go for what is easiest to understand....
- >
- > Do you honestly think "IntuitionBase=(struct IntuitionBase *)OpenLibrary
- > ("intuitionbase.library",37);" is easy to read?
-
- I most certainly do if written like this:
-
- IntuitionBase = (struct IntuitionBase *)
- OpenLibrary ("intuition.library", 37);
-
- Doing some defines which are named not entirely clear, and then used
- somewhere else in the source makes things more difficult to trace and
- understand. The above way is the "standard" way, and the elements used
- are well known and understandable to any programmer which took the time
- to learn a little about the include files etc. No mixing things around
- with defines. I have plenty experience peeking/poking around some huge
- commercial sources with many defines that look much like yours. This
- has made the sources almost impossible to understand. Though these
- sources now are in a well-structured form, it was a nightmare to
- rescue them...
-
- I dislike these shortcuts, since they make life hard for others that
- follow. But hey, there's that "job security" issue again :-)
-
- --
- Best regards Reply to: hemmer@hemmer.adsp.sub.org
- Franz Hemmer #include <stddisclaimer.h>
- Software Developer _ >> Carpe Diem! - Seize the day! <<
- \\ _
- Interacti\X/ision - The name of precision
-