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

Home » Public Forums » archive » Most Common IDL Programming Errors
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: Most Common IDL Programming Errors [message #59848 is a reply to message #59761] Thu, 17 April 2008 08:52 Go to previous messageGo to previous message
rlayberry is currently offline  rlayberry
Messages: 33
Registered: November 2004
Member
On 9 Apr, 01:13, David Fanning <n...@dfanning.com> wrote:
> Folks,
>
> I realize you don't much like to play games (I'm thinking
> back to the "Yo mama's so ..." thread), but you have no
> idea how hard it is to come up with new topics for my IDL
> Tips page every week. (Especially so because I try to
> understand what I write and make available, which
> pretty much rules out 4/5 of what I read on this newsgroup.)
>
> Anyway, I was sitting here wondering why we don't have any
> beer in the house again, and it occurred to me that I should
> have a page listing the 10 or 15 most common IDL programming
> errors with their solutions. But I can only think of three.
>
> Here are the three errors I most commonly see in IDL programs.
>
> 1. IDL programs are named incorrectly. The last program
>    module in the file should have the same name as the file.
>    Utility modules in the file should start with the name
>    of the "command" (or last) module to make clear their
>    purpose.
>
> 2. KEYWORD_SET is used to check whether a keyword is
>    "used" or "defined". This function should only be
>    used with binary keywords. (I plan to avoid all
>    nuance with this list, and just go with black and
>    white pronouncements.)
>
> 3. People draw graphics willy-nilly in widget programs
>    without having the faintest idea which window their
>    graphics might show up in.
>
> What would be on your list? Of course, typos are assumed. :-)

remembering (sometimes) to use /swap_endian when reading in binary
data across platforms

not deleting large arrays when the program no longer needs them

not commenting at the top of my code what the program does and also
giving short but useless filenames (a1.pro etc)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: hdf conversion
Next Topic: Re: Passing variables between procedures

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

Current Time: Fri Oct 10 11:12:44 PDT 2025

Total time taken to generate the page: 1.60159 seconds