comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: gurus: example code as main level code ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: gurus: example code as main level code ? [message #32760 is a reply to message #32758] Fri, 01 November 2002 10:51 Go to previous messageGo to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
I am not quite sure I figured out what this is supposed to do. I guess
this is because I never run any code longer than a line from the main level.
In any case, if I happen to write a program longer than 50 lines, I try
to write an intelligeable header or even an HTML page for it, with
examples of use and explanations. If the code is shorter than 50 lines,
it is assumed to be self-explanatory. Using a main level example seems
insufficient for any modestly complex program.
I do not mean to say it is bad for any reason. Just to say I personally
don't really see any use for it.
Cheers,
Pavel

"R.G. Stockwell" wrote:
>
> Greetings all,
>
> I am going through my monster IDL library, and was wondering what
> people think of the practice of including a main level "example" or
> "Test" code at the end of each function and procedure?
> --snip--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to get the position of mouse
Next Topic: Re: How to plot many lines simultaneously

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 22:34:40 PDT 2025

Total time taken to generate the page: 0.64028 seconds