Re: IDL vs AWK input [message #32933] |
Wed, 20 November 2002 01:18  |
cees
Messages: 7 Registered: January 2002
|
Junior Member |
|
|
Jason Quinn wrote:
> <IDL RANT ON>
> Wouldn't IDL be a trillion times better if it handled reading input in
> a style similar to awk, i.e. using $1, $2, etc., for reading in
> columns? IDL seems overdependant on format codes and the number of
> lines in a file. Also I'm sick of asking people
So are they probably. Why don't you read they manual are try google
instead ???
how to do something
> simple with file input/output and instead of them telling me how to do
> it *in IDL* they direct me to some Joe Blow's webpage with a script
> that does it. I don't want some guy's script, I want to know how to do
> it in IDL.
So learn it. And stop whining!
Am I a troll? No. I'm just fed-up with IDL's wacky syntax
> and half-baked feel and I needed to vent. IDL feels like a shaky house
> of cards. I know the way to do the things above, EOF, etc., but my
> point is that it's a poorly designed language.
SOLUTION: quit using it. There are alternatives IDL doesn't have a
monopoly, so you're free to try something else.
As a casual user, I
> basically need to relearn it every month or two because I've forgotten
> it in the meantime.
Ah, but you do remember to switch on the computer ???
The language is difficult to remember because it
> makes no sense.
SOLUTION: write your own programming language. (That always makes sense
to you.)
> <IDL RANT OFF>
>
> Jason
Cees
|
|
|
Re: IDL vs AWK input [message #32938 is a reply to message #32933] |
Tue, 19 November 2002 15:02   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jason Quinn (jason_quinn@yahoo.com) writes:
> <IDL RANT ON>
> Wouldn't IDL be a trillion times better if it handled reading input in
> a style similar to awk, i.e. using $1, $2, etc., for reading in
> columns? IDL seems overdependant on format codes and the number of
> lines in a file. Also I'm sick of asking people how to do something
> simple with file input/output and instead of them telling me how to do
> it *in IDL* they direct me to some Joe Blow's webpage with a script
> that does it. I don't want some guy's script, I want to know how to do
> it in IDL. Am I a troll? No. I'm just fed-up with IDL's wacky syntax
> and half-baked feel and I needed to vent. IDL feels like a shaky house
> of cards. I know the way to do the things above, EOF, etc., but my
> point is that it's a poorly designed language. As a casual user, I
> basically need to relearn it every month or two because I've forgotten
> it in the meantime. The language is difficult to remember because it
> makes no sense.
> <IDL RANT OFF>
For what it's worth, I feel like this too, sometimes.
Yesterday, for example, I wanted to read a file of
numbers that has NaNs scattered through-out. I got
"Can't read string with F format."
Say what? Sigh... Go look up READS for the thousandth
time, at least.
But on the other hard, I get just as wigged out at
Microsoft trying to read my mind. "Wait a minute,
hold on there, I didn't want to format the whole damn
paper that way!"
There is a middle ground somewhere (and I don't think
it's Matlab, either, after reading a few of their m files).
At least with IDL if you've done the same damn thing five
times, you have probably written a little program to do it.
(Or, at least you should have.) Now, if you had only had
sense enough at the time to document it... :-(
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: IDL vs AWK input [message #33011 is a reply to message #32933] |
Thu, 21 November 2002 08:04  |
jason_quinn
Messages: 2 Registered: November 2002
|
Junior Member |
|
|
cees <cees00@hotmail.com> wrote in message news:<arfk49$muc$1@voyager.cistron.net>...
>
> SOLUTION: quit using it. There are alternatives IDL doesn't have a
> monopoly, so you're free to try something else.
I thought I'd respond to this point that you made. I know the
benefits of IDL (fast), that's why our group uses it. A key word in
the last sentence is 'group', which makes your "quit using it"
solution unfeasable.
Jason
|
|
|