Re: Compulsive use of With



Ray Marron schrieb:
"Maël Hörz" <none@xxxxxxxxxxxx> wrote in message news:47a20101@xxxxxxxxxxxxxxxxxxxxxxxxx
Lets face it, no programmer is happy with the previous programmers code to some degree. The impulse is to rewrite. I'm supervising someone who is very similar to me in style, she likes to rewrite my code, and I have to tell her not too. She says it's so she can 'understand' it.
Always nicer to maintain code that works than code that doesn't.
Rewriting code really can help to understand it [SNIP]

That's fine - just don't check it in, unless you're willing to run all the regression tests yourself or get your ass kicked by QA. :)

Well, the context in which I made the comment is important :-) I didn't say you should do it just if you feel like it. Depending on the code, rewriting it may *ease* further testing and maintenance, especially if it has to evolve. I just wanted to point out that it makes no sense to generally rule out a partial rewrite, this however doesn't imply you should always do it ;-)
.



Relevant Pages

  • Re: Compulsive use of With
    ... The impulse is to rewrite. ... I'm supervising someone who ... Ray Marron ...
    (borland.public.delphi.non-technical)
  • Re: Compulsive use of With
    ... Oliver Townshend wrote: ... The impulse is to rewrite. ... I'm supervising ...
    (borland.public.delphi.non-technical)
  • Re: Compulsive use of With
    ... I'm supervising someone who is very similar to me in style, she likes to rewrite my code, and I have to tell her not too. ... For example large frameworks like the VCL, Qt, Boost or the STL are mostly cleanly designed albeit they use different paradigms they usually keep that paradigm throughout the framework. ...
    (borland.public.delphi.non-technical)