<?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: D'oh! in BreakPoint</title>
    <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2274748#M22073</link>
    <description>&lt;P&gt;Been there, done that.&amp;nbsp; 99% of the time, it is something really stupid like that.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2013 15:45:25 GMT</pubDate>
    <dc:creator>crossrulz</dc:creator>
    <dc:date>2013-01-09T15:45:25Z</dc:date>
    <item>
      <title>D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2274092#M22070</link>
      <description>&lt;P&gt;I just tracked down a subtle bug in my code -- this syntax was the culprit:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/65c2cb0462bcc2b106257729cf9ef1f433d0f9fb/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f393533303669353341414644424134443841384437412f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="SubtleBugIndexArray" title="SubtleBugIndexArray" align="center" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just sharing a silly bug that cost about a half-hour, &lt;SPAN&gt;intentionally&amp;nbsp;&lt;/SPAN&gt;starting a new thread to protest the megathreads that now dominate Breakpoint&amp;nbsp;&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;</description>
      <pubDate>Wed, 09 Jan 2013 01:33:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2274092#M22070</guid>
      <dc:creator>JackDunaway</dc:creator>
      <dc:date>2013-01-09T01:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2274108#M22071</link>
      <description>&lt;P&gt;I am sure I would have found it in 28 minutes. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 01:55:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2274108#M22071</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2013-01-09T01:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2274522#M22072</link>
      <description>&lt;P&gt;As they say in Texas: "If it was a snake it would have bit ya'.".&amp;nbsp;&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;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 13:23:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2274522#M22072</guid>
      <dc:creator>PaulG.</dc:creator>
      <dc:date>2013-01-09T13:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2274748#M22073</link>
      <description>&lt;P&gt;Been there, done that.&amp;nbsp; 99% of the time, it is something really stupid like that.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 15:45:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2274748#M22073</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2013-01-09T15:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2274976#M22076</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/75897"&gt;@crossrulz&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Been there, done that.&amp;nbsp; 99% of the time, it is something really stupid like that.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And the other 1% it's something really, REALLY stupid.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 17:57:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2274976#M22076</guid>
      <dc:creator>GregFreeman</dc:creator>
      <dc:date>2013-01-09T17:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275658#M22083</link>
      <description>&lt;P&gt;Do you think it'd be worth as posting as an idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/817f091b30c3f70f69050a953ad69915e7e4a77c/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f393533393869424434393733384137354645383345312f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Array.png" title="Array.png" align="middle" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 10:42:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275658#M22083</guid>
      <dc:creator>Alex.T</dc:creator>
      <dc:date>2013-01-10T10:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275750#M22084</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/194610"&gt;@Alex.T&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Do you think it'd be worth as posting as an idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/817f091b30c3f70f69050a953ad69915e7e4a77c/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f393533393869424434393733384137354645383345312f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Array.png" title="Array.png" align="middle" /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Go ahead and post it.&amp;nbsp; It's an interesting idea.&amp;nbsp; If it can be pulled off, I think it would help readability a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 12:22:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275750#M22084</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2013-01-10T12:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275762#M22085</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/194610"&gt;@Alex.T&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Do you think it'd be worth as posting as an idea?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm sorry, but this is what I thought of when I saw your image:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/4e60130f698597fdded123a79f7c00033bae812e/687474703a2f2f696d67732e786b63642e636f6d2f636f6d6963732f6b65726e696e672e706e67" border="0" alt="" title="" width="357" height="258" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 12:34:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275762#M22085</guid>
      <dc:creator>jcarmody</dc:creator>
      <dc:date>2013-01-10T12:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275770#M22086</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/194610"&gt;@Alex.T&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Do you think it'd be worth as posting as an idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/817f091b30c3f70f69050a953ad69915e7e4a77c/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f393533393869424434393733384137354645383345312f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Array.png" title="Array.png" align="middle" /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's a cool idea, but one problem with it is that it can only refer to the indices of the primitive itself (i.e. if someone wires a value into one of the inputs and that value is not a constant, then there's no way of knowing what the index in the array would be). I would suggest a modification - if a constant is wired into the primitive (or no value at all), then the primitive shows the indices until the next value wired into an input. Otherwise, it shows the same square which was there until now. I would show that as a demo image in the idea. I would also add an expection where if the index value is large and won't fit into the primitive, the output would show a square instead.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 12:38:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275770#M22086</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2013-01-10T12:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275868#M22087</link>
      <description>&lt;P&gt;&lt;A href="http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Build-Index-array-element-index-tip/idi-p/987680" target="_blank"&gt;http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Build-Index-array-element-index-tip/idi-p/987680&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 14:01:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275868#M22087</guid>
      <dc:creator>elset191</dc:creator>
      <dc:date>2013-01-10T14:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275892#M22088</link>
      <description>&lt;P&gt;Maybe there is some way for that to break your VI. &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 14:08:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275892#M22088</guid>
      <dc:creator>Darin.K</dc:creator>
      <dc:date>2013-01-10T14:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275968#M22089</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/134255"&gt;@Darin.K&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Maybe there is some way for that to break your VI. &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's exactly my sentiment. A function with unwired inputs and outputs should break the VI. For this and for the static/dynamic configuration tst points out, I have removed the +1 from 2009 from the idea to which Tim links since it dilutes the array indexing syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Each individual "Index Array" function in the node is overloaded to accept either 0 or 1 inputs. When it accepts 0, it implicitly accepts the ++ value of the index above. When a constant is wired into an index, it statically effects the configuration of the node. A *static* configuration syntactically should be representated and contained within the node, not without.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rather than stepping even further syntactically in the wrong direction of the lexicon defition, we should push toward breaking this node into a few separate functions (one, statically configured; the other dynamically). This view is extreme, and I don't fully support it (I think the best path forward may be to do nothing with the node). Even though overloading is convenient, the tradeoff is safety. The compiler is your friend. Embrace the broken run arrow.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 14:47:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2275968#M22089</guid>
      <dc:creator>JackDunaway</dc:creator>
      <dc:date>2013-01-10T14:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2276360#M22090</link>
      <description>&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/b36f9eab22f906c87baeb67976173d8f4f10c8ce/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f393534343069353043413245464443413439313638322f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Array.png" title="Array.png" align="middle" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oh wow! I had no idea a configuration like that wouldn't result in a broken run arrow. I thought that if you left all of the terminals unwired, they'd default to incremental indexing, and if wired, all terminals would need some input... Seems a little crazy in terms of dataflow, but I suppose I see the advantages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now to lament over all of the time that could have saved me.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 19:11:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2276360#M22090</guid>
      <dc:creator>Alex.T</dc:creator>
      <dc:date>2013-01-10T19:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: D'oh!</title>
      <link>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2277544#M22105</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/194610"&gt;@Alex.T&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/b36f9eab22f906c87baeb67976173d8f4f10c8ce/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f393534343069353043413245464443413439313638322f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Array.png" title="Array.png" align="middle" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oh wow! I had no idea a configuration like that wouldn't result in a broken run arrow....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now to lament over all of the time that could have saved me.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Yep! Very handy! Watch out though, since constructs like this (and my original example!) can sometimes be a code smell, better replaced by a typed/named data structure for code readability and type safety.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My original example has since been refactored for these reasons, and is more readable and scalable (static indexing of array elements is not readily scalable!)&amp;nbsp;&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;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 19:01:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/D-oh/m-p/2277544#M22105</guid>
      <dc:creator>JackDunaway</dc:creator>
      <dc:date>2013-01-11T19:01:48Z</dc:date>
    </item>
  </channel>
</rss>

