05-13-2008 02:25 PM
OK,
Since I just jumped on Christian last week about over-simplifying a rule, its time for me to eat humble pie and clarify my statement.
1) When a value is available in a wire and a control then it is preferable to use the wire, regardless of how long the wire becomes.
2) It is never acceptable to use a set of locals to avoid a long wire*.
Yes I use locals in my code but I keep them to a minimum and are only used to support the GUI when the terminal of the control is already used on the diagram. Extra thought is given to enusre that there is only one writer of the local active at any time.
Ben
* Because they introduce chaos. ![]()
05-13-2008 02:45 PM
05-13-2008 06:41 PM
@JeffOverton wrote:
Locals are also a highly efficient way to terminate multiple loops if one loops is in control.
05-13-2008 06:49 PM
@JoeLabView wrote:Wow... what a can of worms.
05-13-2008 07:07 PM
Thanks sth for the wise comments 🙂
I didn't see Ben stating an absolute rule. He & I were just stating that using Local Variables to replace wires is not a good idea.
And we always keep in mind robustness, maintainability, scalability, (and re-use).
Just sharing experiences, not to offend anyone 😉
05-13-2008 09:10 PM
05-13-2008 10:34 PM
Ben wrote:
"If there is nothing evil, how do you that something is good????"
Getting philosophical on us are you?Its easy if you do not look at good as the oposite of evil but rather define good as the absence of evil.Hmmmm?Ben
Hi Ben,
Your premise is similar to the arguement that Einstein had with his professor regarding theh 'Faith in God'.
05-13-2008 10:35 PM
Pnt wrote:
Two stars
for just saying , locals are not evil ?!
...........................................................
Pnt,
Dont worry; I m with you. ![]()
I gave corrective/compensatory 5stars there & bonus 5 stars here. ![]()
05-13-2008 11:43 PM
Vow,,,, ![]()
Many many many more messages just within few hours.
Great to see all the discussions from all the pioneers. I agreed all your comments and am honouring you all here.... ![]()
Anyhow, it seems nowadays some threads which starts with technical discussions leads to some nontech comments
(don't know whether its related to discussion or not) even we have separate boards for that.... ![]()
Thanks,
Mathan
05-14-2008 12:20 AM
parthabe and others... thanks
sth wrote: "Local variables have the ability to "Heisenberg" your code. Then you will have to hire a good quantum mechanic like Ben to eliminate the uncertainty. "
Really clever...