Toad World® Forums

Commenting is not refactoring


#1

Refactoring does not change the functionality of a program. After you refactor a
program it does the same thing it did before, but it does it in a different
way.

If you comment a block, in most cases it will change the functionality of a
program.

I don’t think that commenting a block should be available by selecting
‘Refactor’ .

I know this is a small point but words have meaning. Am I wrong?

Regards,

Mike


#2

What if you comment out useless code? Declared identifiers and subroutines that
are not used, etc.

They needed a home and the right-click menu is about 2 items away from requiring
a scroll bar so I moved them to the most relevant container even if some uses
may change the logic.

Michael

On Feb 25, 2011, at 6:20 PM, “Michael Moore” wrote:

http://en.wikipedia.org/wiki/Code_refactoring

Refactoring does not change the functionality of a program. After you
refactor a program it does the same thing it did before, but it does it in a
different way.

If you comment a block, in most cases it will change the functionality of a
program.

I don’t think that commenting a block should be available by selecting
‘Refactor’ .

I know this is a small point but words have meaning. Am I wrong?

Regards,

Mike

#3

I probably would have done the same thing. I use that feature all the time.
It’s awesome sauce.

Regards,

Mike

On Fri, Feb 25, 2011 at 4:15 PM, Michael Staszewski <
michael.staszewski@quest.com > wrote:

What if you comment out useless code? Declared identifiers and subroutines
that are not used, etc.

They needed a home and the right-click menu is about 2 items away from
requiring a scroll bar so I moved them to the most relevant container even
if some uses may change the logic.

Michael

On Feb 25, 2011, at 6:20 PM, “Michael Moore”
wrote:

Refactoring does not change the functionality of a program. After you
refactor a program it does the same thing it did before, but it does it
in a different way.

If you comment a block, in most cases it will change the functionality
of a program.

I don’t think that commenting a block should be available by
selecting ‘Refactor’ .

I know this is a small point but words have meaning. Am I wrong?

Regards,

    Mike