in reply to Time for Some Movie Magick
I wonder what the thinking is that gets people into this twisted level of code. Maybe it's just seeing it somewhere else, then cargoculting it without thinking.for i in `ls ${image_path}*.jpg`
So, given that this is likely the case, let me say, Don't do it this way.
Here's what you're asking your poor system to do:
Yeah, that's it. Simple. Now look what we told the system to do:for i in ${image_path}*.jpg
So, why does the other form get cargo-culted so much? It's like the useless use of cat that I keep seeing all the time. My guess is that it's like that in a bad book or a bad FAQ, and then it gets copied and pasted from one person to the next, like a magical formula that nobody understands and yet repeats, as if the magic words will open up the door if uttered in the proper moonlight.
Just curious, I guess. Remember, this isn't personal... I'm just trying to figure out your thinking so that I can work out a counter-meme to it to help everyone at once, instead of one at a time like I keep ending up doing. Call me lazy. {grin}
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Time for Some Movie Magick
by abitkin (Monk) on Oct 20, 2004 at 11:58 UTC |