Re: Using OO to extend product written in C++ but no Uml diagrams exist
From: Daniel T. (postmaster_at_earthlink.net)
Date: 11/26/04
- Next message: Phlip: "Re: Using OO to extend product written in C++ but no Uml diagrams exist"
- Previous message: Daniel Parker: "Re: agile/xp question (formal analysis)"
- In reply to: john harkin: "Re: Using OO to extend product written in C++ but no Uml diagrams exist"
- Next in thread: Phlip: "Re: Using OO to extend product written in C++ but no Uml diagrams exist"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Nov 2004 14:32:48 GMT
jjhnospam@yahoo.co.uk (john harkin) wrote:
> Using UML as that is what modelling tool we are using supports and
> staff doing A/D will/could be different to implementors and theory is
> just hand over the model. The theory is great but getting to know a
> large codebase which is several years old to ensure doing it correctly
> without introdcing lots of bugs is different.
It sounds like someone with some political clout managed to get the
company to buy (buy into) some modeling tool and now developers are
expected to use it; whether it makes sense to or not...
Well, if you must use the tool then one thing you need to create a
model. Does the tool have any way to create a model based on existing
code? If so, use it. What you will end up with is a rather complicated
mess of a model because it will contain way too much detail. You then
must go through that mess and clean it up. This is mainly to appease the
manager ants.
What you really need to do is create a test harness. An automated tool
that can compare the output of your new code with the output of the
original code.
I suggest you get the books "Refactoring: Improving the Design of
Existing Code" and "Design Patterns". I'd like to suggest "Refactoring
to Patterns" but I haven't personally studied it.
What you need to do is remove duplication. If there are bits of code
that do the same thing to different object types, create an abstract
type and combine those bits of code. If you find more than one 'if' or
'switch' that make a decision based on the same information, then create
an abstract class that dispatches to the correct code without the 'if'
or 'switch'.
- Next message: Phlip: "Re: Using OO to extend product written in C++ but no Uml diagrams exist"
- Previous message: Daniel Parker: "Re: agile/xp question (formal analysis)"
- In reply to: john harkin: "Re: Using OO to extend product written in C++ but no Uml diagrams exist"
- Next in thread: Phlip: "Re: Using OO to extend product written in C++ but no Uml diagrams exist"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|