Yeah I agree that not doing things in the best or most efficient manner is certainly not preferable to doing things correctly using the prescribed methods. Having no coding xp whatsoever has been both a blessing and a curse. I never think oh I can't do that, until maybe after hours of working on something. But then again I have no methodological constraints on my approach to scripting.
Of course sometimes this results in making mistakes, which in turn can lead to discussions like this one, which I agree in general is a good thing. It certainly clarified some things for me. I never even looked at AssignCommand in the Lexicon before though I use it all the time.
As far as the other discussion about crashes and such and bad things happening, in general if there are poor scripting practices such as the incorrect use of AssignCommand then there may be
other scripting errors, TMI's and such as indicated by ShaDoOow, though, as I alluded to earlier I do use AssignCommand, but have never had a problem. Of course that is only anecdotal evidence from my module and not across the board statement that using it may not cause problems. I think some individuals come from a background where rigorous proof are required. I have many programmer friends who require very specific clear examples of things you say in a conversation. Sometimes it is rather weird as you spend more time explaining what you are talking about than you do actually talking about it.
Probably best to use it only sparingly as suggested above.
Modifié par ffbj, 03 septembre 2010 - 11:39 .