<?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: Request: Code based examples of bad LV code in BreakPoint</title>
    <link>https://ni.lithium.com/t5/BreakPoint/Request-Code-based-examples-of-bad-LV-code/m-p/4449111#M34199</link>
    <description>&lt;P&gt;My favorite find&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While(1);&lt;/P&gt;
&lt;P&gt;***no break ***&lt;/P&gt;
&lt;P&gt;Return 0;&lt;/P&gt;
&lt;P&gt;Much;&lt;/P&gt;
&lt;P&gt;unreachable;&lt;/P&gt;
&lt;P&gt;cleanup;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, an infinite loop with post loop actions written in C++&amp;nbsp; I guess they teach PhD's (physics) that unity has a potential to fail.:0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Aug 2025 13:15:05 GMT</pubDate>
    <dc:creator>JÞB</dc:creator>
    <dc:date>2025-08-08T13:15:05Z</dc:date>
    <item>
      <title>Request: Code based examples of bad LV code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Request-Code-based-examples-of-bad-LV-code/m-p/4449086#M34197</link>
      <description>&lt;P data-unlink="true"&gt;So, being reminded of the fun and educational threads of &lt;A href="https://forums.ni.com/t5/BreakPoint/Rube-Goldberg-Code/td-p/399999/jump-to/first-unread-message" target="_self"&gt;Rube Goldberg code&lt;/A&gt; and &lt;A href="https://forums.ni.com/t5/BreakPoint/Why-some-people-say-Local-Variables-are-bad/td-p/711239/jump-to/first-unread-message" target="_self"&gt;Local abuse&lt;/A&gt; i started thinking: How do we in a good way explain how bad this is to new people/text based programmers?&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Can we some up with some good text based examples that shows or explains similar bad designs in other languages? I know it's hard, since in many cases you can't write that bad code and get it to work/compile. E.g. since Locals are good in text based programming, maybe the equivalent is to use Globals and create a new one (that copies another one)&amp;nbsp; for each time you want to use it?&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;LV is sometimes too forgiving.&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;/Y&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 09:33:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Request-Code-based-examples-of-bad-LV-code/m-p/4449086#M34197</guid>
      <dc:creator>Yamaeda</dc:creator>
      <dc:date>2025-08-08T09:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Request: Code based examples of bad LV code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Request-Code-based-examples-of-bad-LV-code/m-p/4449111#M34199</link>
      <description>&lt;P&gt;My favorite find&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While(1);&lt;/P&gt;
&lt;P&gt;***no break ***&lt;/P&gt;
&lt;P&gt;Return 0;&lt;/P&gt;
&lt;P&gt;Much;&lt;/P&gt;
&lt;P&gt;unreachable;&lt;/P&gt;
&lt;P&gt;cleanup;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, an infinite loop with post loop actions written in C++&amp;nbsp; I guess they teach PhD's (physics) that unity has a potential to fail.:0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 13:15:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Request-Code-based-examples-of-bad-LV-code/m-p/4449111#M34199</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2025-08-08T13:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Request: Code based examples of bad LV code</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Request-Code-based-examples-of-bad-LV-code/m-p/4449169#M34200</link>
      <description>&lt;P&gt;The book "Code Complete" shows good and bad ways to do things and calls the bad examples "Coding Horrors". Not sure how many are relevant to LabVIEW though.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 19:38:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Request-Code-based-examples-of-bad-LV-code/m-p/4449169#M34200</guid>
      <dc:creator>Jacobson</dc:creator>
      <dc:date>2025-08-08T19:38:16Z</dc:date>
    </item>
  </channel>
</rss>

