Quote:
|
Originally Posted by Lance
It was insecure code without an explanation. See also: the part where I already explained this!
|
If I asked for help on how to use a command, I wouldn't want it nested in a load of "secure" coding. I would simply want an example and, if need be, apply my own security measures. There's no inherent reason in posting a command example with security included. It provides the answer plus a cumbersome read.
Quote:
|
Originally Posted by Lance
Do you honestly suppose that without the resultant discussion, the author would have understood this? Calani didn't bother saying anything about it until I commented, after all.
|
Well, I noticed right away that there were no security features in the script. The first thing I thought was: "Wow, I wouldn't copy and paste that code. It doesn't even check to see who uses it.". I don't even write in GScript. Also, if you say something is insecure, it wouldn't hurt to point out
why it is insecure.
Quote:
|
Originally Posted by Lance
Certainly not. If you bothered to pay attention, you'd have noticed I already noted that by posting all that code with no explanation that she was violating rule 2 as it is. If she's going to post some copy&paste code, she should at least make it secure. Otherwise, she's just doing more harm than good.
|
It's not copy&paste code. It's an example. If the author copy and pastes it, it's his or her fault for doing so. People who ask for help are supposed to use the help in order to write their own scripts, not to copy and paste the suggestions.
Also, to post what the script does is redundant. The author presumably knows his or her own desires.
Quote:
|
Originally Posted by Lance
1) This is not a programming guide.
2) There is no "Hello world" involved.
|
1) That's where you're wrong. The NPC scripting forum
frequently acts as a scripting guide. In fact, a guide is precisely what this forum appears to function as.
2) So? It was an example, not a direct reference to the current discussion.
Quote:
|
Originally Posted by Lance
2) Calani still didn't explain any concepts (simple or 'complex').
|
Is it necessary to explain commands? If someone gave me something I didn't understand, I would go look up the command. It encourages the self-teaching method, rather than the "oh I got something wrong, can you tell me what to do to the letter?" method.
Quote:
|
Originally Posted by Lance
Learning about script security is an integral part of learning how to script. If you cannot script something securely, you cannot script well.
|
You also can't script well if you don't grasp elements of the language. The nature of the question the author poses suggests that he or she does not yet have a grasp on some of the commands.
P.S: Why don't you address the author with suggestions on security, rather than engaging in a confrontation with another forumer who was trying to be helpful?
P.P.S: And no, I'm not being hypocritical. I'm simply asking why a moderator who is so concerned with security would be so eager to attack someone's efforts without providing an example of an improved script.
Quote:
|
Originally Posted by Lance
- The author asked for the how, not for an example, and certainly not for the posting of a full script and violation of the forum rules.
- The author asked for a weapon being added by a level npc. Calani supplied an (insecure) weapon triggeraction (and no way to connect it with a level NPC, even if she was interested in answering the author's question).
|
Learning by example is probably the most effective way to learn anything. Including scripting.