Programming w/o comments

Efried

Active Member
Hello,
I have quite some problems debugging without having my documentation at hand- would it be possible using kind of documentation in the code? May be for now adding labels? In the far future we will have GUI programming ;-)
thanks
 
I write my code on another machine - including extensive comments.
I use either hash (#) or c-style (//) comments in my code.
Then I use sed to remove all the comment lines and display to my screen when I'm ready to put code into a device. Select all, copy and paste into the webcontrol programming text area then send.
 
It's convenient, lets me maintain multiple versions of the code with full comments etc, and have a decent editor.
 
Thanks,
 
is there some Windows pendant to SED?
secondly the option inserting fake labels like comment1, is this viable?
 
thanks
rossw said:
I write my code on another machine - including extensive comments.
I use either hash (#) or c-style (//) comments in my code.
Then I use sed to remove all the comment lines and display to my screen when I'm ready to put code into a device. Select all, copy and paste into the webcontrol programming text area then send.
 
It's convenient, lets me maintain multiple versions of the code with full comments etc, and have a decent editor.
 
Efried said:
Thanks,
 
is there some Windows pendant to SED?
secondly the option inserting fake labels like comment1, is this viable?
 
thanks
 
There is a windows version of sed, was in a "unix-tools" pack, included grep, awk (I think), ls, vi and a bunch of other stuff.
 
I have used labels as comments and they work ok, however they are not "fake" in any way - they're real labels. They also take up real memory in the codespace.
 
Back
Top