<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Rube Goldberg Code in BreakPoint</title>
    <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/3352673#M28499</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/123634"&gt;@JÞB&lt;/a&gt; wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/2483"&gt;@Ray.R&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Ran into this code today and it seems to be screeming Rube Goldberg.&amp;nbsp; Any comments?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG src="https://ip1.i.lithium.com/652d0157ceb685c1d2e4afe033c4ba7d82ac276c/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31383831343269354444433233443046413639334138422f696d6167652d73697a652f6f726967696e616c3f763d76322670783d2d31" border="0" alt="improveCode.png" title="improveCode.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'd likely increment the array of indicies after the loop as opposed to incrementing each index in the loop but, benchmark that first. &amp;nbsp;Drop-in-the-ocean difference in performance for %99.99..... of use cases but forming a good habbit for the really oddball use case. &amp;nbsp;Inlined- there should be no differance (I Think!)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/7614"&gt;@altenbach&lt;/a&gt; wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/92827"&gt;@James_W&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Any performance enhancement from moving the Increment outside and +1 to all array elements after creation?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Probably not if most elements are retained. As Yamaeda already said, having it outside is faster with the elapsed time proportional to the number of elements retained by the conditional tunnel. If the output array is empty, it is fastest. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;( If most elements are retained and if it were DBL, there may or may not be a small difference due to the possible use of SIMD if the increment is outside. This is such a fast loop on a small array that it would not be&amp;nbsp;noticeable.).&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here is where I will most likely get myself into trouble (with a chance of learning something today)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did say a benchmark would help but, there is no really good way to benchmark that specific code. &amp;nbsp;I've been triing to find out if there is any operation that takes place on the value of data that will not be retained. &amp;nbsp;Essentially, going way back to my youth, I learned it is pointless to operate on the value of a data point just before dumping the data itself out of memory. &amp;nbsp;The bit-bucket just doesn't care what the values are! &amp;nbsp;It treats all bits and bytes the same without bias. &amp;nbsp;Way back when it was the programmers job to look at the programming sheet and modify it so those moot value manipulations never made it to the punchcard deck (it saved stresses on the vacuum tubes.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's about the last time I needed to get quite so deep into optomizing an instruction set. &amp;nbsp;Brighter minds than mine have found ways to save me from writing that kind of R-G construct! &amp;nbsp;And, there are several points between the BD and machine instruction where moot data value manipulations could theoretially be injected. &amp;nbsp;I theory (as I know it) the LabVIEW compiler could optomize that code, the RTE could recognize the pattern, a pre-processor could intercept the moot instructions and I think an OS could be taught to laugh off "Busy-work" that will never be stored or presented to a user. &amp;nbsp;That being said, if the optomization is known to exist at a lower level there is no need to duplicate it at a higher one. &amp;nbsp;Or, is there? - it would depend on the return in performance for each specific implementation I THINK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Warned you that I would get myself into trouble here and am in over my head&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://ni.lithium.com/i/smilies/16x16_smiley-surprised.gif" alt="Smiley Surprised" title="Smiley Surprised" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2016 14:59:59 GMT</pubDate>
    <dc:creator>JÞB</dc:creator>
    <dc:date>2016-09-29T14:59:59Z</dc:date>
    <item>
      <title>Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/399999#M2634</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;A &lt;STRONG&gt;Rube Goldberg Machine&lt;/STRONG&gt; is defined as an &lt;EM&gt;"exceedingly complex devices that perform simple tasks in very indirect and convoluted ways"&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;/EM&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;A href="http://en.wikipedia.org/wiki/Rube_Goldberg" target="_blank"&gt;http://en.wikipedia.org/wiki/Rube_Goldberg&lt;/A&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;/EM&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;One example would the the&amp;nbsp;&lt;A href="http://www.rubegoldberg.com/html/pencil_sharpener.htm" target="_blank"&gt;simplfied pencil sharpener&lt;/A&gt;.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Let's define &lt;STRONG&gt;Rube Goldberg Code&lt;/STRONG&gt; as "&lt;EM&gt;"exceedingly complex&amp;nbsp;LabVIEW code&amp;nbsp;that perform simple tasks in very indirect and convoluted ways"&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;/EM&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;For example, let's have a look at the&amp;nbsp;&lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=198940#M198940" target="_blank"&gt;code&lt;/A&gt; to test if two booleans are equal. Just beautiful! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Unfortunately, the beauty of this&amp;nbsp;is lost to most of you. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;To test this point, I have recently posted an obvious&amp;nbsp;joke to see if anyone actually pays attention.... Apparently not!!! Nobody commented on my&amp;nbsp;&lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=196084#M196084" target="_blank"&gt;example&lt;/A&gt; that I snuck into the tic-tac-toe discussion. For comparison, here's my actual code detail compared to the posted image. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; Duuhhh!!!&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/BreakPoint/2634/1/RubeGoldbergCode.png" /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Anyway, I am sure that most of you have some great examples of such code. This thread is the place to share the fun! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I am not really looking for intentional constructs (anybody can do that!). The focus should be&amp;nbsp;more&amp;nbsp;on existing serious code where you suddenly noticed that there is a much&amp;nbsp;simpler way.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;(Many code examples posted in the forum contain mini versions, e.g. the use of "delete from array" with "deleted portion" as the only output&amp;nbsp;wired, used as a substutute for "array subset" seems quite popular&amp;nbsp;;))&lt;/DIV&gt;&lt;P&gt;Message Edited by altenbach on &lt;SPAN class="date_text"&gt;08-03-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:10 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2006 15:09:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/399999#M2634</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2006-08-03T15:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/400114#M2638</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;I'm not making this up...the following was in a VI I was doing a code review on several years ago:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/BreakPoint/2638/1/Select_duhhhh.jpg" /&gt;&lt;/P&gt;
&lt;P&gt;You'll all be happy to know this person no longer works at NI.&lt;/P&gt;
&lt;P&gt;-D&lt;/P&gt;&lt;P&gt;Message Edited by Darren on &lt;SPAN class="date_text"&gt;08-03-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:03 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2006 18:03:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/400114#M2638</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2006-08-03T18:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/400141#M2640</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;When I was "wee-G-Babe" I wanted to sort folders based their size.&lt;/P&gt;
&lt;P&gt;I did not know about the "Cluster Sort" method so I coded up a variation on a bubble sort.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/BreakPoint/2640/1/Bubble_Sort.JPG" /&gt;&lt;/P&gt;
&lt;P&gt;Greg McKaskle said he&amp;nbsp;was stumped for a while but eventually figured it out.&lt;/P&gt;
&lt;P&gt;This was one of the first "Bad" from the "Good the Bad and the Ugly" series.&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;Message Edited by Ben on &lt;SPAN class="date_text"&gt;08-03-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:47 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2006 18:46:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/400141#M2640</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2006-08-03T18:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/400537#M2646</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;I am one of those sick bastards that actually enjoys straightening other people's spaggetti.&amp;nbsp; I have seen some impressive examples of Goldburg constructs.&amp;nbsp; Recently I ran across the gem in the top illustration.&amp;nbsp; To the guy's credit, in the original code the selects were nowhere near eachother.&amp;nbsp; The equality, however, is inexcusable.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/BreakPoint/2646/1/goldberg.PNG" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Disclaimer: I am guilty of this sort of thing too.&amp;nbsp; In fact, some examples I have posted have glaring Goldbergs.&lt;BR /&gt;&lt;BR /&gt;Altenbach, you have such an established guru reputation that I am sure many people assumed there was some obscure reason why you set the example up that way.&amp;nbsp; Especially in the highly optimized enviornment of a coding challenge.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by jasonhill on &lt;SPAN class="date_text"&gt;08-04-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:00 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2006 14:59:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/400537#M2646</guid>
      <dc:creator>jasonhill</dc:creator>
      <dc:date>2006-08-04T14:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/400551#M2647</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;I think I saw a variation of this in &lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=199020#M199020" target="_blank"&gt;PRIME.vi&lt;/A&gt;&amp;nbsp;posted yesterday. As a bonus, it also contains Darren's construct inside the case structure. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So how do we go about constructive criticism in these cases? I am sure a few nudges in the right direction can make a big difference. Still I am impressed that people with no obvious&amp;nbsp;LabVIEW or&amp;nbsp;general programming background&amp;nbsp; can get a fully working program together. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2006 15:15:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/400551#M2647</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2006-08-04T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/400665#M2648</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Hi there:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=184488#M184488" target="_blank"&gt;Here &lt;/A&gt;is a golberg code about activating a boolean after an enter,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://ni.lithium.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt; Sorry Altenbach..&lt;BR /&gt;&lt;BR /&gt;Ton&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;PS which code was faster (first post)?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by TonP on &lt;SPAN class="date_text"&gt;08-04-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:36 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2006 19:18:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/400665#M2648</guid>
      <dc:creator>TCPlomp</dc:creator>
      <dc:date>2006-08-04T19:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/400752#M2649</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Search for the numerous implementations of exclusive radio buttons (before the native ones)&lt;BR /&gt;For example &lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=51004" target="_blank"&gt;here&lt;/A&gt; chutla's implementation and the elegant solution of mine.&lt;BR /&gt;&lt;BR /&gt;Do they still teach how to make truth tables? &lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Message Edité par JeanPierre le &lt;SPAN class="date_text"&gt;08-04-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;07:04 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2006 23:03:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/400752#M2649</guid>
      <dc:creator>JeanPierre</dc:creator>
      <dc:date>2006-08-04T23:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/401164#M2652</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Ok, this is too good to pass up.&amp;nbsp; I do not mean to offend the original poster(s) but check out the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Launch LabVIEW 8.0 (7.1 doesn't allow browsing web examples).&lt;/LI&gt;
&lt;LI&gt;Launch Example Finder.&lt;/LI&gt;
&lt;LI&gt;(You may need to click "Setup", click the Web tab, and increase your number of web hits to 50 or more.)&lt;/LI&gt;
&lt;LI&gt;Include ni.com examples.&lt;/LI&gt;
&lt;LI&gt;Browse into Fundamentals - Arrays and Clusters.&lt;/LI&gt;
&lt;LI&gt;Scroll to the bottom of the list and you'll see a few examples with globe icons and an orange user icon which indicate they were submitted by external users.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Among the 10 or so user-submitted examples in this category are two that are particularly noteworthy.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;2D Array to number of Rows and Columns.vi&lt;/LI&gt;
&lt;LI&gt;2D_Array_to_number_of_Rows_and_Columns - revised.vi&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Before opening them, think about how you'd write a VI with this name...&amp;nbsp; For me, I was thinking Array Size followed by Index Array if you wanted them as scalars.&amp;nbsp; Both of the above VIs are equally effective, but I'm not sure that's how I'd teach someone to do it.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Definitely not too efficient.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2006 16:02:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/401164#M2652</guid>
      <dc:creator>JeffBoettcher</dc:creator>
      <dc:date>2006-08-07T16:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/459816#M3141</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;In this thread&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;FONT color="#800080"&gt;&lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=222491&amp;amp;jump=true" target="_blank"&gt;http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=222491&amp;amp;jump=true&lt;/A&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;FONT color="#800080"&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/170/222476/1/Cluster.JPG" /&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;I posted a method to copy the contents of a cluster to another cluster.&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2007 13:54:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/459816#M3141</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2007-01-04T13:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/459903#M3142</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/9539"&gt;@Ben&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;In this thread I posted a method to copy the contents of a cluster to another cluster.&lt;BR /&gt;
&lt;/P&gt;&lt;HR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;And here I was thinking that this code was supposed to copy an array of variants into the cluster... &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://ni.lithium.com/i/smilies/16x16_smiley-tongue.gif" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Jan 2007 15:58:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/459903#M3142</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2007-01-04T15:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/459988#M3143</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;I see code as shown by Jason (#4) and Darren (#2) all the time...&amp;nbsp; Especially Darren's example.&lt;/P&gt;
&lt;P&gt;&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://ni.lithium.com/i/smilies/16x16_smiley-surprised.gif" alt="Smiley Surprised" title="Smiley Surprised" /&gt;&lt;/P&gt;
&lt;P&gt;Then again, I've been corrected by much simpler code while posting answers to this forum, too..&amp;nbsp; &lt;/P&gt;
&lt;P&gt;where's the smiley-guilty icon???&amp;nbsp; :womanwink:&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2007 17:55:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/459988#M3143</guid>
      <dc:creator>Ray.R</dc:creator>
      <dc:date>2007-01-04T17:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/460141#M3144</link>
      <description>&lt;DIV&gt;we are probably all guilt of these bits of code sometime or another. &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;watch&amp;nbsp;out the person whom professes to be innocent and posts example code on these types of forums.&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Jan 2007 21:54:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/460141#M3144</guid>
      <dc:creator>RayFarmer</dc:creator>
      <dc:date>2007-01-04T21:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/467647#M3234</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Here is another one.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/BreakPoint/3234/1/RG_Code.JPG" /&gt;&lt;/P&gt;
&lt;P&gt;I included both states just incase you thought there may have been a goode reason hiding in the other state.&lt;/P&gt;
&lt;P&gt;Here is another in the same VI&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/BreakPoint/3234/2/Iteration%20count.JPG" /&gt;&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;
&lt;P&gt;Message Edited by Ben on &lt;SPAN class="date_text"&gt;01-23-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:28 PM&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Message Edited by Ben on &lt;SPAN class="date_text"&gt;01-23-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:31 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by Ben on &lt;SPAN class="date_text"&gt;01-23-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:31 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2007 19:27:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/467647#M3234</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2007-01-23T19:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/467661#M3235</link>
      <description>&lt;DIV&gt;I've seen the array size/indexing thing a LOT before...I wonder if there's an easier way we could teach new users how auto-indexing works...&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;-D&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Jan 2007 19:50:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/467661#M3235</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2007-01-23T19:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/467721#M3237</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Ben,&lt;BR /&gt;&lt;BR /&gt;I have them all over some code I inherited from a previous employer at our company.&lt;BR /&gt;&lt;BR /&gt;I honestly studied it for a while thinking ther HAS to be some significance to that code (Regarding the error cluster).&amp;nbsp; I mean, come on.....&lt;BR /&gt;&lt;BR /&gt;In the end I convinced myself I WAS actually sane (Something I feel I have to do on an almost daily basis)&amp;nbsp; and it had no purpose whatsoever.&lt;BR /&gt;&lt;BR /&gt;Shane.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by shoneill on &lt;SPAN class="date_text"&gt;01-23-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:49 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2007 21:49:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/467721#M3237</guid>
      <dc:creator>shoneill</dc:creator>
      <dc:date>2007-01-23T21:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/467742#M3239</link>
      <description>&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/9539"&gt;@Ben&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Here is another one.
&lt;/P&gt;&lt;HR /&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;We defined Rube Goldberg code as "&lt;EM&gt;exceedingly complex&amp;nbsp;LabVIEW code&amp;nbsp;that performs simple tasks in very indirect and convoluted ways"&lt;/EM&gt; (see first post).&lt;/P&gt;
&lt;P&gt;This (and some of the examples shown earlier) &amp;nbsp;is now&amp;nbsp;actually a &lt;STRONG&gt;Rube Goldberg NOP &lt;/STRONG&gt;(or &lt;STRONG&gt;Rube Goldberg NOOP&lt;/STRONG&gt;), freshly defined as:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"exceedingly complex&amp;nbsp;LabVIEW code&amp;nbsp;that performs &lt;U&gt;absolutely nothing&lt;/U&gt;&amp;nbsp;in very indirect and convoluted ways". &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;(We could also define the construct as a&amp;nbsp;&lt;STRONG&gt;WEQ&lt;/STRONG&gt; (wire equivalent code), code that can be replaced with a plain wire without&amp;nbsp;any change in functionality. ;))&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2007 22:11:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/467742#M3239</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2007-01-23T22:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/468021#M3243</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;First the legal stuff:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Warning: The code posted previously was written by "proffesionals". Do NOT attempt to write this code yourself.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Excellent point Christian. (Leave ti to one our academic types to recognize when we need a new term &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; ).&lt;/P&gt;
&lt;P&gt;Just to help me understand the differences...&lt;/P&gt;
&lt;P&gt;WEQ's are identity operations and satisfy the condition&lt;/P&gt;
&lt;P&gt;A = B&lt;/P&gt;
&lt;P&gt;where:&lt;/P&gt;
&lt;P&gt;A = Input&lt;/P&gt;
&lt;P&gt;B =Output&lt;/P&gt;
&lt;P&gt;Can we say the same about RG-NOP's?&lt;/P&gt;
&lt;P&gt;Shane wrote;&lt;/P&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;Ben,&lt;BR /&gt;&lt;BR /&gt;I have them all over some code I inherited from a previous employer at our company.&lt;BR /&gt;&lt;BR /&gt;I honestly studied it for a while thinking ther HAS to be some significance to that code (Regarding the error cluster).&amp;nbsp; I mean, come on.....&lt;BR /&gt;&lt;BR /&gt;In the end I convinced myself I WAS actually sane (Something I feel I have to do on an almost daily basis)&amp;nbsp; and it had no purpose whatsoever.&lt;BR /&gt;&lt;BR /&gt;Shane.&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;That construct is all over this code I recieved. I wonder if it was the same developer or if they both came from the same LV school of thought.&lt;/P&gt;
&lt;P&gt;After stepping outside the "Good Developer Box" for a second it hit me what that code was for!&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/BreakPoint/3234/1/RG_Code.JPG" /&gt;&lt;/P&gt;
&lt;P&gt;It is a very handy way&amp;nbsp;to make sure the sub-VI does not return an error. If the&amp;nbsp;sub-VI is failing, just switch the boolean constant to false!&amp;nbsp;&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://ni.lithium.com/i/smilies/16x16_smiley-surprised.gif" alt="Smiley Surprised" title="Smiley Surprised" /&gt; &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://ni.lithium.com/i/smilies/16x16_smiley-sad.gif" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;img id="smileymad" class="emoticon emoticon-smileymad" src="https://ni.lithium.com/i/smilies/16x16_smiley-mad.gif" alt="Smiley Mad" title="Smiley Mad" /&gt;&lt;/P&gt;
&lt;P&gt;The the very thought alone gave me the sensation of "finger-nails on the chalk board".&lt;/P&gt;
&lt;P&gt;If this is indeed the case, then the code I posted is not RGC or RG-NOP or WEQ...&lt;/P&gt;
&lt;P&gt;It's a hack!&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2007 13:50:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/468021#M3243</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2007-01-24T13:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/468162#M3244</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;FONT color="#ff0033" size="7"&gt;LOL !!! @ Ben!!!!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Whoever coded that must have worked here (customer) too!!!&lt;/P&gt;
&lt;P&gt;Now talk about useless code!!!!&amp;nbsp; If it's No Error, then nothing is done to the error cluster values.&amp;nbsp; If there was an error, the status was ALREADY TRUE!!, so again no change!!!&lt;/P&gt;
&lt;P&gt;I'm spending hours upon hours at changing code like this..&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2007 16:41:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/468162#M3244</guid>
      <dc:creator>Ray.R</dc:creator>
      <dc:date>2007-01-24T16:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/468379#M3249</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Here's another WEQ, straight from the forum :):&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/BreakPoint/3249/1/Dunce.png" /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;See:&amp;nbsp; &lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=225862#M225862" target="_blank"&gt;http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=225862#M225862&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by altenbach on &lt;SPAN class="date_text"&gt;01-24-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:31 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2007 21:31:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/468379#M3249</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2007-01-24T21:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rube Goldberg Code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/468395#M3250</link>
      <description>Hey Ben,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="noindex"&gt;"It's a hack!"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;You're forcing me back to another round of sanity checks.....&lt;BR /&gt;&lt;BR /&gt;Somehow I always knew LabVIEW was referring to ME when it complained about "Insane Objects"......&lt;BR /&gt;&lt;BR /&gt;Shane&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Jan 2007 22:25:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Rube-Goldberg-Code/m-p/468395#M3250</guid>
      <dc:creator>shoneill</dc:creator>
      <dc:date>2007-01-24T22:25:46Z</dc:date>
    </item>
  </channel>
</rss>

