BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code


Ben wrote:

...

"

 - c'mon Christian, show us the REAL solution that uses only 2 base functions!!! - you know you want to:smileywink:

 



You're right, but it wasn't specified overall amount used functions. My solution uses also only two base functions, but multiple times. Just created another example of "Rube Goldberg Code" Smiley LOL

 

 

Message 1161 of 2,608
(11,900 Views)

@SnowMule wrote:

Shouldbe easy enough to clean up with a screen thisbig. Smiley Very Happy

 



Just use block diagram cleanup and hope for the best 😛

0 Kudos
Message 1162 of 2,608
(11,885 Views)

This, this library makes me want to cry every time I open it!  I was given it not so long ago, accompanied by a jovial request to "simply update this to LabVIEW 8.5 and fix any bugs you find".  If you ever start to feel too relaxed, I hope this will help to reinstate your stress levels to the hights that they should normally be. Smiley Happy

 

A few pictures to tickle your taste buds:

 

Spoiler
Horrible 1.JPG

Horrible 2.JPG

Horrible 3.JPG

Horrible 4.JPG


Never say "Oops." Always say "Ah, interesting!"

Message 1163 of 2,608
(11,777 Views)

Some time ago, in some spaghetti-horror code, I've stumbled upon following chunk:

check.png

 

Yeah, why using new value when old one is the same? Smiley Very Happy

Message 1164 of 2,608
(11,670 Views)

Maybe they wanted a time delay

0 Kudos
Message 1165 of 2,608
(11,646 Views)

Saw this in code I am working on.  I'll be able to tease the author..  LOL!

 

top: original

 

bottom non-RG

 

Message 1166 of 2,608
(11,583 Views)

Hi Ray,

 

well, you could omit the GetDateTime function too as FormatDateTimeString already uses current time as default input...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 1167 of 2,608
(11,574 Views)

That's true..  🙂  I RG'ed myself

0 Kudos
Message 1168 of 2,608
(11,552 Views)

It was probably done in one of the 5 min. updates before a demo! Or  - my brain ws fried from looking at someone's "regular expressions" (why they are called "regular", sort of like "common sense", an oxymoron!)

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 1169 of 2,608
(11,507 Views)

LOL!!  Glad you like regEx 😄  I might be able to squeeze a few more in there.

 

Check your PM...  I'll give you an update since last week. 

 

Now my turn to check for Rube...

 

Is the following code a Rube?  For some reason, I seem to think there is a better way to get a string of a 4 digit number...

Ah crap..  I just thought of it...  Using a regEx, of course...  I'll post the Rube code anyway..

 

 

0 Kudos
Message 1170 of 2,608
(11,443 Views)