BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

 Creating a 1D array from a text file.  Found here: http://forums.ni.com/ni/board/message?board.id=170&message.id=466129

 

Message 591 of 2,593
(11,623 Views)

Instead of 1 case structure with 10 cases, let's deeply embed 10 True/False case structures with all of the corresponding string comparisons that need to go along with it.

 

 

Seen here.

 

Message Edited by Ravens Fan on 01-15-2010 11:49 PM
Message 592 of 2,593
(11,535 Views)

 

 

 

***Message deleted***

Message Edited by muks on 01-19-2010 02:04 PM
0 Kudos
Message 593 of 2,593
(11,463 Views)

@Ravens

kudos for Kuala Lipis...  pretty small villiage in the middle of nowhere! I spent an evening there en-route to the Parhentian islands in April last year.

Message Edited by nrp on 01-20-2010 11:44 PM
0 Kudos
Message 594 of 2,593
(11,400 Views)

I thought those were just a bunch of foreign words.  I had no idea what they meant.

 

Now I know they are places.  Kuala Lipis

 

Thanks.  I learned something today.

0 Kudos
Message 595 of 2,593
(11,384 Views)

This has to be the best thread of all time.

 

Just today, while reviewing some code for a client, I came across this little gem that I thought belonged here.

 

why the AND.PNG

 

Huh?

Message 596 of 2,593
(11,331 Views)
That is the universal programming symbol for "Do you want to move this?"  AND "Are you really sure you want to move this?"Smiley Wink
Message 597 of 2,593
(11,323 Views)

Silly me!!

 

 

Smiley Very Happy

 

ROFL!

0 Kudos
Message 598 of 2,593
(11,316 Views)
If I had to guess, I would say the most likely reason is that there was another condition there which was removed and the programmer didn't remove the AND because they thought they may still need it. The easiest change, in such a case, is to AND the boolean with itself, and I wouldn't be surprised if I've done something similar myself (although ideally it would be removed the next time the code was edited if the change was deemed final).

___________________
Try to take over the world!
Message 599 of 2,593
(11,261 Views)
Caught myself with this R-G code
RG.PNG
NRG.PNG

"Should be" isn't "Is" -Jay
Message 600 of 2,593
(11,151 Views)