in reply to My philosophy on coding (in Perl and other languages):
Pick up The Pragmatic Programmer or Code Complete, and read what they have to say about comments. As long as you expect to have separate documents for the maintainer and the computer, you are doing something wrong. Document the interface, not the code. Make the code its own comment. (Good variable and function names really helps. So do well-written messages in your error checks.)
My second point is references. Don't use references because they are cool - OK I can buy that. But don't go out of your way to avoid nested data structures either. (Which happen to use references.) Gratuitous abuse of references is bad, but so is the gratuitous abuse of virtually any other feature. Why single out references?
Other than those two nits I think you are spot on.
A final point that is too often forgotten. There is nothing wrong with not knowing something. Programming is a field that is constantly changing and you will constantly be dealing with things you don't know. So if you have any questions at all, check the documentation and if you cannot figure it out, start asking questions.
Not knowing is expected. But if you are not learning then you have a problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RE: My philosophy on coding (in Perl and other languages):
by ichimunki (Priest) on Dec 26, 2000 at 22:11 UTC | |
|
RE: RE: My philosophy on coding (in Perl and other languages):
by mrmick (Curate) on Aug 15, 2000 at 21:05 UTC | |
by jlistf (Monk) on Aug 15, 2000 at 21:23 UTC | |
by tilly (Archbishop) on Aug 16, 2000 at 00:06 UTC |