Gregory Seidman wrote:
On Sat, Jul 02, 2005 at 02:16:49AM +0200, Leon Rosenberg wrote:
} Heh,
}
} I hate this kind of discussion...
}
} Maybe you are the fastest keyboard user on the world...
}
} I want to see you refactoring a method, lets say change the method name,
} with emacs/vi/notepad if there are about 20 other places in code where this
} method is called. With an IDE it takes 1 second. With vi? 3 hours?
A) If you change the name of a method, especially by the time it's
referenced numerous places, you've already screwed up. It shows a lack
of forethought in your design (and I don't necessarily mean formal
design).
B) With appropriate unix tools (ed or perl, in this case), it's under a
minute. While that's more than one second, it should be an exceedingly
rare operation (see A).
} leon
--Greg
Ooo, I'll hafta disagree on both of these.
A) Renaming something to better describe its function isn't a crime or
bad design; sometimes it's just a by-product of an iterative design
process. Iterative design is pretty much the norm for quick turnaround
projects, especially web-based, because programmers have to work at
internet speed, not a sane "I get to design everything first" speed. I'm
pretty design-oriented, and reasonably good at it to boot, but I might
rename something 2-3x before I'm done with it, for various reasons.
These days I can do that trivially; in older days I might not have
bothered, and my recent code is the better for it.
B) It's WAY quicker and, more importantly, _safer_, to rename using an
IDE that knows about the underlying code than with sed/etc.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]