Quote:
Originally Posted by Crow
Code Gallery snippets are not meant to be used as is. Most require integration into existing systems. What's shown here is a piece of code only including some very basic things. If you don't know exactly what it does, I don't think you should be using it in the first place. No offense.
|
Quote:
Originally Posted by Crow
Code is useless if you don't understand it, because then you can't integrate it into other things, therefore it's of no use. Playerworlds relying completely on the Code Gallery don't stand a chance, either.
|
Way to imply how things
can be, but always isn't. You're implying that I shouldn't use code from the code gallery if I don't understand it? If I understood it, I could script the code myself. The Code Gallery isn't the place to dump your code for people who understand it, but a place to release code that can help and more. In terms of helping I mean understanding the code, the function of it and maybe how to integrate it into systems.
If I was a new scripter and wanted to integrate this code into my own systems, I wouldn't have any clue on how how to do so. There's no explaination behind the code posted by the OP, like where should it go? The code is also indented, so should it go under an event? A function? The title is also vague compared to the content posted, I would have expected a guide explaining how to add buttons on the taskbar by script, not some snippet from his GP Tool. And aslo about the underlined bold part, if I don't try to use if I didn't understand it fully, I wouldn't learn how to use it at all. Many scripters learn by trial and error.
This isn't post isn't meant to bash the OP, just to inform him that some documentation would be more useful for people learning or wondering how the code is used, code gallery posts including sections like screenshots, how-to-install and description/function is much more constructive and helping.