Re: Compulsive use of With
- From: Maël Hörz <none@xxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 18:12:26 +0100
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 and *sometimes* it is necessary. I wouldn't generally rule it out, it really depends on the way the code is written. 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. The style isn't necessarily yours but once you put some effort into understanding it you will see the pattern.
However there is other code that looks much like it was patched too many times and lacks an overall concept or structure or the initial structure/concept isn't flexible anymore for the new requirements. Ambiguity is not just a style problem but shows also that often the "bigger picture" is missing.
This type of code can break every time you change something since it depends on a myriad of assumptions that are only valid for very restricted scenarios (the ones that were important to implement exactly what was needed, just fix a bug or patch a small thing/feature).
In this case a (partial) rewrite is IMO a good idea.
.
- Follow-Ups:
- Re: Compulsive use of With
- From: Ray Marron
- Re: Compulsive use of With
- References:
- Compulsive use of With
- From: Bruce McGee
- Re: Compulsive use of With
- From: Oliver Townshend
- Compulsive use of With
- Prev by Date: Re: Delphi roadmap from the .NET perspective...
- Next by Date: Re: Delphi roadmap from the .NET perspective...
- Previous by thread: Re: Compulsive use of With
- Next by thread: Re: Compulsive use of With
- Index(es):
Relevant Pages
|