View Single Post
  #2   Spotlight this post!  
Unread 21-04-2008, 00:18
Turing Turing is offline
Registered User
no team
 
Join Date: Apr 2008
Location: Texas
Posts: 1
Turing is an unknown quantity at this point
Re: C or LabVIEW: CompactRIO

ComradeNikolai made a comment about commenting above, and I thought I should comment on it.

1) Comments should be used for . . . comments. Aside from debugging during development, commented-out code is likely a bad thing. If you find yourself looking at code with large sections commented out, it may be time to consider cleaning up unused, broken, or out-dated code.

2) One of the structures in LabVIEW is a "diagram disable block" which acts like commenting out code in a text-based language. You can still see the underlying code, but a transparent block is above it and the code will not run.