The greatest programming aid
The greatest programming aid ever made was - comments.
Now don't get me wrong- i don't mean comments used to document the code
Tut- where would the programming world end up with an approach like that
I mean comments to remove the code without removing it at all
Take your pick
Two slashes ?
or open and close with a slash and an asterisk
Need to change a method signature?
No worries !!!
we recommend the two slashes for you
simply write a new signature header right underneath
you can always see for the next few years what the previous signature looked like
Need to rewrite the for-loop and change it to a while?
we recommend the open close comments
you can always refer to the old logic for ages to come.
Need to pay the electricity bill ?
Well why don't u put a reminder note for yourself in the code
You will be conveniently reminded the next time you work on this file
The compiler will never know ;). HA!
// Need to take out the recycle bin this week
Now don't get me wrong- i don't mean comments used to document the code
Tut- where would the programming world end up with an approach like that
I mean comments to remove the code without removing it at all
Take your pick
Two slashes ?
or open and close with a slash and an asterisk
Need to change a method signature?
No worries !!!
we recommend the two slashes for you
simply write a new signature header right underneath
you can always see for the next few years what the previous signature looked like
Need to rewrite the for-loop and change it to a while?
we recommend the open close comments
you can always refer to the old logic for ages to come.
Need to pay the electricity bill ?
Well why don't u put a reminder note for yourself in the code
You will be conveniently reminded the next time you work on this file
The compiler will never know ;). HA!
// Need to take out the recycle bin this week
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home