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


Click here to return to the 'Too much code?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Too much code?
Authored by: Skeeve on Jun 24, '08 11:53:28PM

> Perl the most cryptic and spartanic of all scripting languages?
Cite: "Wenn man keine Ahnung hat: Einfach mal Fresse halten"" Dieter Nuhr
(Translation: "If you don't have a clue, just keep your trap shut.")

Of course this is just 95 lines of Code (uncompressed and indented for legibility). The rest is documentation and explanation.

> But the task at hand could be done a lot better with ordinary shell scripting I think.

In which sense of "better". "Better documented"? "Better understandable"? I don't think so! No! I'm sure not! Hey! I'm not here to win a perl golf contest, I'm here to give the people something they can use and, if they want to, learn from.

> It's finished before you know it. My Leopard box has three Xcode
> SDKs so it's got a lot of files and directories. It took less than three
> minutes to find over 1,800 ICNS files and transfer them to a shelf.
> And if I save the shelf file I get a single file added to the system.
> Everything - the 1,800+ "aliases" - are all in one file.

You're such a hero! BTW: May I ask how many lines of code those 2 programs need? And does it give you the same structured result?

> You're making too much of a project out of this.

Maybe. But that's
a) none of your business
b) a script I (and hopefully others) will still understand 2 years from now






[ Reply to This | # ]