Re: Programming rules [message #19453] |
Thu, 23 March 2000 00:00 |
Liam E. Gumley
Messages: 378 Registered: January 2000
|
Senior Member |
|
|
Nicolas Decoster <Nicolas.Decoster@noveltis.fr> wrote in message
news:38DA2927.1AF88F24@noveltis.fr...
> I am new in IDL and I am looking for documentation on programming rules
> such as:
> - common code formatting (naming conventions, etc.);
> - good and wrong coding (such as the trivial "no goto" rule);
> - how to write help and documentation.
> Is there anything like that somewhere ?
Here's a list I put together for a few friends:
http://www.homestead.com/gumley/files/Recommended_Reading.ht m
For your needs, I'd recommend "Code Complete". It is not language specific,
and it has tons of excellent practical advice about code formatting and
variable naming conventions, coding practice (the goto issue is discussed in
some depth), and many other topics which are directly relevant to IDL. I
encourage IDL programmers at any level to read this book.
For a prolog template, start the IDL development environment (idlde on
UNIX), and type
.compile template
which will open an example template.
Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley
|
|
|
Re: Programming rules [message #19460 is a reply to message #19453] |
Thu, 23 March 2000 00:00  |
Struan Gray
Messages: 178 Registered: December 1995
|
Senior Member |
|
|
Nicolas Decoster, Nicolas.Decoster@noveltis.fr writes:
> I am new in IDL and I am looking for documentation on
> programming rules such as:
>
> - common code formatting (naming conventions, etc.);
> - good and wrong coding (such as the trivial "no goto" rule);
> - how to write help and documentation.
> - ...
>
> Is there anything like that somewhere ?
Mike Schienle has a nice style guide online:
http://www.ivsoftware.com/IDL_Style.html
David Fannning's example and tip routines are also pretty exemplary, so
it's worth browsing his site even if you don't need the functionality (though
sooner or later, you will):
http://www.dfanning.com
Struan
|
|
|