BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

A friend of mine was slavishly converting a C program that dealt with binary arrays and came up with this:

old

new



Message Edited by JeffOverton on 03-12-2008 03:17 PM
Download All
Message 181 of 2,635
(13,061 Views)

Even if the Add Array Elements didn't exist (* or math functions were not polymorphic and no access to array functions), the contents of the loop should have been simpified to the following:

* had to write the disclamers before Altenbach sees this post 😄



Message Edited by JoeLabView on 03-12-2008 05:13 PM
Message 182 of 2,635
(13,045 Views)
Well, it does not really matter, because the output is folded anyway, but somehow the alternative at the bottom is so much more readable. 😄
 
 
(The "hard way" was found in the model function of:


Message Edited by altenbach on 03-13-2008 11:21 PM
Message 183 of 2,635
(12,993 Views)

I'm submitting myself for a response to this thread. It's circuitous, but I think it kind of has to be.

0 Kudos
Message 184 of 2,635
(12,915 Views)


JeffOverton wrote:

I'm submitting myself for a response to this thread. It's circuitous, but I think it kind of has to be.



If you want to degoldberg it a bit, I believe you should be able to combine the first and third nodes into the second one without changing the behavior, because property nodes execute top-to-bottom. It should be tested, though.

___________________
Try to take over the world!
Message 185 of 2,635
(12,907 Views)


tst wrote:

property nodes execute top-to-bottom. It should be tested, though.



now there's something worth knowing
0 Kudos
Message 186 of 2,635
(12,900 Views)
Yup,

Actions like this:



Are perfectly legal (Apart from the coercion dots of course.....)

Shane.


Message Edited by Intaris on 03-26-2008 03:56 AM

Message Edited by Intaris on 03-26-2008 03:56 AM
Message 187 of 2,635
(12,837 Views)
Well, we have an array in a shift register and need to clear it once in a while.
 
Of course the first thing that comes to mind would be to use "delete from array" with an "Inf" diagram constant wired to the lenght ...right?.... NOT!
 
 
Message 188 of 2,635
(12,667 Views)
0 Kudos
Message 189 of 2,635
(12,642 Views)

Can you find at least 8 errors in my previous post? Apart from the title...

🙂

0 Kudos
Message 190 of 2,635
(12,642 Views)