My thoughts on core scripts

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

Well, I don’t really like them. On one hand, as a developer it makes my code easier to manage, but on the other if I were a user I’d have to end up downloading a bunch of scripts. And then what happens if my core script was not compatible with someone else’s core script? Tough.

But core scripts are necessary. Ace default scripts are not perfect, and in fact a lot of it is simply not flexible. While there is always the question of performance if we decided to separate one large method into say 5 smaller methods, I’d like to think that trade-off is insignificant compared to the ease of extension that it would provide.

I’ve written one core script so far – Core Learning – which overwrites 2 methods because the code I want to change was written in a block so I couldn’t do anything with aliasing, and there was no way to try to alias it to add stuff I want.

In the end it was really just re-arranging some code; the logic is the same, but the end result is likely infinitely more flexible than before.

But of course, I’m not going to add this to some sort of “Tsuki Core Script”. Any script that likely needs this will only need it for those two methods that were overwritten, and not the other dozen classes that I might have changed for my own convenience.

However you should use core scripts properly: they should be placed above the “Materials” tab. Of course this doesn’t really make a difference from placing it above the script that needs it, but since these are meant to replace the default scripts and for custom scripts to treat these as the default scripts themselves, it’d make more sense to just put it above all custom scripts.

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

You may also like...

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax