Sunday, December 20, 2015

IT (11): Debugging/Keys to excel in programming...

Code debugging is  such a difficult, tedious but intellectually-stimulating part of programming.
Code can stop working for silliest of reasons.
The script name, an alphabet case, a comma, a parentheses, the path name, an underscore, ...
All sorts of thing...
Hell of a job it is to find the issue..
But, when its caught, fixed and code works, what a relief it is!
--------------------------------------------------------------
#Learning from others codes (so many freely available)
#Asking peers
#Follow convention (because the rules are tested and proven)
#Elaborate documentation and commenting
#Review, optimize codes based on critiques
#Stringent testing of the code
#Keeping latest copy of the source code
#Keeping frequently-used commands handy
---------------------------------------------------------------------
Common coding errors......
#######PERL###########
Global symbol "@F" requires explicit package name at perl.pl line 20.
Missing right curly or square bracket at code_check.pl line 5, at end of line
syntax error at code_check.pl line 5, at EOF
Execution of code_check.pl aborted due to compilation errors.
Can't open file: No such file or directory at code_check.pl line 4.


No comments:

Post a Comment