BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Why some people say Local Variables are bad...

hhhmmm!!!!

 

 

And that's only part of the code! (spotted here)

Message Edited by altenbach on 06-15-2009 08:30 PM
Message 101 of 396
(9,478 Views)

Another one of those....

 

 

(SEEN HERE)

Message Edited by altenbach on 07-16-2009 11:51 AM
Message 102 of 396
(9,359 Views)

It strangely reminds me of the variables declaration section in graphically challenged programming languages...

Maybe an inherited vestigial feature?



LabVIEW, C'est LabVIEW

Message 103 of 396
(9,311 Views)
They think they have to define the variables.... Not realizing that the wire is the variable..  It's hard to imagine a wire in text-based language..  Even harder to explain it to a manager..
Message 104 of 396
(9,240 Views)

 From:  http://forums.ni.com/ni/board/message?board.id=170&thread.id=443938

 

The person did realize that there was Local Variable abuse.  As a matter of fact, there are a few Rube Goldbergs that could be simplified.

 

 

Message 105 of 396
(9,025 Views)

Equal to "12" is not handled.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 106 of 396
(9,029 Views)

Found here: http://forums.ni.com/ni/board/message?board.id=170&thread.id=451133

 

A little bit of abuse in here.  Nothing serious and simple to fix.  Haven't looked at the complete code, so I cannot tell if there are any race conditions. 

 

0 Kudos
Message 108 of 396
(8,837 Views)

Tip (ical) of the iceberg.  This app that uses hundreds of local variables and upwards of 100 global variables to boot.

 

 

 

Message Edited by Wayne.C on 10-27-2009 01:40 PM
Message 109 of 396
(8,831 Views)

Scary!

 

There's some Rube Goldberg as well.  Especially repeating the cluster info from the left to the cluster at the right. AND to populate data from one cluster to a bunch of Locals..  Why bother having a cluster!!

0 Kudos
Message 110 of 396
(8,814 Views)