Just wondering if its wise to leave code comments in your finished app or best to clear them out?
Just wondering if they would make a crackers job easier if they were in place?
Printable View
Just wondering if its wise to leave code comments in your finished app or best to clear them out?
Just wondering if they would make a crackers job easier if they were in place?
Comments are not compiled with the code. The compiler skips them as if they are not there at all. So the unwise thing would be to remove them.
It depends on which language you are using, but assuming it is one that creates executable files, leave them in - because comments only exist in the code files, they do not get compiled into the executable.
Oh didnt realise that, its good to know!
Thanks guys
You do want to leave all comments in your app - although they are not compiled each comment you (or any of your colleagues) made will help in the future to better (and much quicker too) understand what the entire app or specific piece of code does.
Programs without comments are very difficult to maintain - we often forget what we did yesterday; would you remember what was in your mind a year ago? ;)
And you want to comment as much as you think it is necessary - functions/procedures/etc need so description about what it does, expected results, known issues (if any), etc...
You and your colleagues will appreciate this at some later time.
Regards.