----Original Message----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Susan Joslyn
Sent: Friday, September 30, 2005 5:17 AM
To: [email protected]
Subject: Re: [U2] Good Programming Practice Question.........

> One thing that has been over-looked in this conversation is
> the notion of 'lowest common denominator programming'.
> 
> My software runs on all MV platforms. Therefore, whenever
> possible, I stick with syntax that works
> on all platforms.  When that is not possible, I
> resort to calls and includes and CASE statements.

Am I understanding you to say that "calls and includes and CASE statements"
*don't* work on all platforms?!?  If so, then please let me know which those
are so I can stay clear of them.  There's no way I'd ever work on a platform
that backward.

> Sometimes the syntax that works on ALL platforms is not the
> clearest, the
> most modern or the fastest to execute on any given platform.
> But so far
> I've not been able to justify having multiple versions of
> code *that are not necessary*.

This is what a pre-compiler is for.  Or compiler directives.

> For example, I don't use alpha labels because they will not
> compile on all versions / flavors. 

I don't need to run on this platform, either.

> Same with the REMOVE logic because it doesn't fly on
> all platforms.  Both of those are handy and have benefits --
> but are not
> worth keeping up with a separate version of the code for.

With this I can agree.

> Some things there is no common method -- things like the
> CHANGE() command,
> SWAP, RAISE, LOWER, CONVERT) ... I have to have a different
> subroutine/include/chunk to run this on each platform.

Or a pre-compiler.  I dislike having tiny code snippets in INCLUDEs, because
you lose the flow of the program you are looking at.

-Keith
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to