Comment Re:The comment may also be complex.. (Score 1) 660
Out of interest do you expect code to compile first time?
I'm always suspicious if this happens, but it's probably because I don't do much coding in my job - when I do code it tends to be scripts to quickly test something/process data (or some embedded code for a micro controller) - as such I always tend to be using different compilers (esp embedded ones which always seem to have their own set of non standard stuff), languages (python then C++ etc).
As a result I'm always making some sort of grammar mistake (i.e commenting out C++ with # instead of //, missing the odd semi-colon, pressing tab instead of spaces (or not setting up the text editor to handle this correctly) or forgetting the correct way to refer to a member function via a pointer etc..)
It could just be that I'm used to compiling being the fastest way to catch this kind of problem in most cases.
I'm always suspicious if this happens, but it's probably because I don't do much coding in my job - when I do code it tends to be scripts to quickly test something/process data (or some embedded code for a micro controller) - as such I always tend to be using different compilers (esp embedded ones which always seem to have their own set of non standard stuff), languages (python then C++ etc).
As a result I'm always making some sort of grammar mistake (i.e commenting out C++ with # instead of
It could just be that I'm used to compiling being the fastest way to catch this kind of problem in most cases.