I’m having this inconvenience while commenting. But I was wondering how you guys would do this. Lets say you have the following code:
/*Fancy function*/
function fancyFunction(){
echo "Oh yeah"
//200 more lines go here
}
And now I want to comment the whole function, you’ll do this:
/*
/*Fancy function*/ <--Comment breaks here
function fancyFunction(){
echo "Oh yeah"
//200 more lines go here
}
*/
How do you do this xD
Commenting is meant to give you comments for your code. A system to tell you and other developers the reasoning behind decisions or anything else not obvious by reading the code itself.
Your best bet would be to remove the code in question. If you are using version control (and you should), you will never lose the code.