BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

I had this one 

joeorbob_0-1600295650797.png

staring me in the face most of today before I finally realized what it was...

Spoiler
joeorbob_1-1600295778222.png

 -joeorbob

0 Kudos
Message 2221 of 2,565
(11,873 Views)

@User002 wrote:

I had this one 

joeorbob_0-1600295650797.png

staring me in the face most of today before I finally realized what it was...

Spoiler
joeorbob_1-1600295778222.png

 -joeorbob


Well...

 

Sometimes code like that is convenient during testing. If you're not sure the First Call does the job, the Boolean is a quick way to test by switching between "always true" and "first time true".

 

I'd at least make it a control. Then I can set it to true while running, and it will reset to false next time I load the code. So if I forget to remove it, at least it won't do anything.

 

Of course it should be removed after testing. But I feel this could be a "left over from testing" instead of "Rube Goldberg". 

Message 2222 of 2,565
(11,852 Views)

I am not going to repeat the entire discussion here, but the collective efforts of a few community members was able to iteratively speed this code up ~30000x (from 5 minute to a few ms) and literally reduce it to the size of a postage stamp. 😄

 

Capture.PNG

 

altenbach_0-1600807442449.png

Message 2223 of 2,565
(11,746 Views)

To add a single point to a chart, we apparently need to (1) take a subset containing one element, then (2) turn it into a 2D array with one element, before (3) feeding it to the chart. Repeat for four other charts. (Seen here).

 

altenbach_0-1601499481984.png

 

 

I can think of something slightly simpler. 😄

Message 2224 of 2,565
(11,585 Views)

(seen here)

 

My gut feeling is that this can be slightly simplified, but I cannot find a replacement. Which palette contains a wire?

 

altenbach_0-1602362262726.png

Message 2225 of 2,565
(11,466 Views)

@altenbach wrote:

(seen here)

 

My gut feeling is that this can be slightly simplified, but I cannot find a replacement. Which palette contains a wire?

 

altenbach_0-1602362262726.png


I took the liberty to try and simplify it a bit 😄

VinnyLaTaupe_1-1602488617475.png

 

 

Message 2226 of 2,565
(11,453 Views)

Most are familiar how to flip a boolean, but have you ever tried the double-back-flip-triple-axel-boolean operation?

(seen here)

 

 

altenbach_0-1604001845590.png

Message 2227 of 2,565
(11,283 Views)

@altenbach wrote:

Most are familiar how to flip a boolean, but have you ever tried the double-back-flip-triple-axel-boolean operation?

(seen here)

 

 

altenbach_0-1604001845590.png


I believe it is called a triple lindy.

 

mcduff

Message 2228 of 2,565
(11,276 Views)

@mcduff wrote:
I believe it is called a triple lindy.

Ha! You are right! Totally forgot about this one. 🙂

0 Kudos
Message 2229 of 2,565
(11,263 Views)

It took me far too long to realize this was a parody. 

Message 2230 of 2,565
(11,251 Views)