Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'This "hint" is ludicrous' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
This "hint" is ludicrous
Authored by: babbage on Sep 23, '03 02:59:55PM

Because Perl is *huge*. It's like writing a shell script to manipulate the data in a file, and using AppleScript (osascript) to pull in Microsoft Excel to do the work halfway through.

Excel can be a very useful tool, but there's so much overhead in calling it that for the most part you're better off by [a] going all out & using the heavyweight tool for everything you're trying to do (i.e. do it all in Perl, or Excel), or by [b] finding a way to solve the whole problem with lightweight tools.

By way of another analogy, loading Perl is like taking an airplane ticket somewhere. Sometimes, you want to go somewhere far, so traveling by air is the way to go. In other cases, the distance is short and there's no reason to get in a plane. Mixing Perl & shell code is often like travelling for many hundreds of miles by car, only to get in a plane for the last hundred.

There may be a good reason to do this, but usually it would be more efficient to just take the plane [Perl] the whole way, or find a route that doesn't involve pulling in such an expensive component for such a small portion of the task.

Make sense?


---
--
DO NOT LEAVE IT IS NOT REAL



[ Reply to This | # ]
This "hint" is ludicrous
Authored by: dajwhite on Sep 24, '03 11:19:24AM

Yep. It's always interesting to learn new coding viewpoints. I'm just glad to hear that your objection wasn't based on a technical problem since I've seen it done before and didn't want something biting us at a later date.



[ Reply to This | # ]