Re: Libraries and effiency
Re: Libraries and effiency
On 11 Aug 2010, at 13:39, Shane Stanley wrote:
> On 11/8/10 10:31 PM, "Tommy Bollman" <email@hidden> wrote:
>
>> The thing with libraries is that they may spare you for reinventing the wheel
>> each time, as there are much of the same things going on in all the scripts,
>> like finding the parent folder, or returning a file name, or checking if a
>> date is lesser than or greater than an other, and so on.
>
> So I make a dozen handlers for things like finding the parent folder. And
> when I want them, of course I can't remember their names, and then I can't
> remember whether they provide the trailing colon or not, so I open them and
> check the code, at which point I'm thinking copy and paste from my
> collection of snippets isn't such a bad scheme at all...
>
Repetition aside, there is a lot to be said for this practical chop shop approach.
Scripts are often shared or posted online.
With Python, PHP, Ruby. PERL and the likes we can call on module/library functions in the knowledge that they are present, generally, on the OS.
Also the extensive nature of the fore mentioned module/libraries lessens the need to write primitive user space helper functions in the first pace.
This is not so much the case with AS.
Also most other scripting languages are open source, so a community can have its say, and fork if it is not listened to.
Again, not the case with AS. So the implementation options are limited.
Generic, non specialist, library/module systems probably need to be part of the core language/installation to expect widespread adoption.
Regards
Jonathan Mitchell
Developer
Mugginsoft LLP
http://www.mugginsoft.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden