 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
John Gabriele Guest
|
Posted: Thu Oct 30, 2003 1:50 am Post subject: UML tutorial with actual C++ example code? |
|
|
Can anyone please point me to a good UML tutorial that contains
C++ example code? The stuff I've found on the web and on the bookstore
shelves doesn't contain any actual C++ code. Googling, so far I've found:
http://www.lysator.liu.se/~alla/dia/umltut/
I've looked at the general UML tutorials, but I'm having trouble making
the leap between that and actual code.
The reason I'm looking is, I find that once I get 8 or so classes in my
projects all working together, I start to lose track of what everybody's
doing. I try to sketch out drawings with boxes for classes, and arrows
connecting them in various ways, but it ends up being my own concoction
that doesn't work as well as I'd hoped. I want to be able to make some
diagrams and tape them up by my monitor to keep my head on straight
while I'm working. :)
Finally, a question; for those of you that took the time to learn UML
and have used it on C++ projects: have you found using UML useful?
--
--- remove zees if contacting via email ---
|
|
| Back to top |
|
 |
Stephane Richard Guest
|
Posted: Thu Oct 30, 2003 2:32 am Post subject: Re: UML tutorial with actual C++ example code? |
|
|
Hi John,
You might want to have a look at Class Builder
https://sourceforge.net/projects/classbuilder
It's OpenSource, it's a UML like (could be UML pure but I'm just not sure
enough, but it's a great object generation tool that does manage
aggregations and other OOP design concepts). class generation tool and it
generates C++ so might bea good tool to bridge the gap between UML and C++
for you.
--
Stéphane Richard
"John Gabriele" <john3gz (AT) bestwebz (DOT) net> wrote
| Quote: | Can anyone please point me to a good UML tutorial that contains
C++ example code? The stuff I've found on the web and on the bookstore
shelves doesn't contain any actual C++ code. Googling, so far I've found:
http://www.lysator.liu.se/~alla/dia/umltut/
I've looked at the general UML tutorials, but I'm having trouble making
the leap between that and actual code.
The reason I'm looking is, I find that once I get 8 or so classes in my
projects all working together, I start to lose track of what everybody's
doing. I try to sketch out drawings with boxes for classes, and arrows
connecting them in various ways, but it ends up being my own concoction
that doesn't work as well as I'd hoped. I want to be able to make some
diagrams and tape them up by my monitor to keep my head on straight
while I'm working. :)
Finally, a question; for those of you that took the time to learn UML
and have used it on C++ projects: have you found using UML useful?
--
--- remove zees if contacting via email ---
|
|
|
| Back to top |
|
 |
Medi Montaseri Guest
|
Posted: Thu Oct 30, 2003 6:28 am Post subject: Re: UML tutorial with actual C++ example code? |
|
|
"Stephane Richard" <stephane.richard (AT) verizon (DOT) net> wrote
| Quote: | Hi John,
You might want to have a look at Class Builder
https://sourceforge.net/projects/classbuilder
It's OpenSource, it's a UML like (could be UML pure but I'm just not sure
enough, but it's a great object generation tool that does manage
aggregations and other OOP design concepts). class generation tool and it
generates C++ so might bea good tool to bridge the gap between UML and C++
for you.
--
Stéphane Richard
"John Gabriele" <john3gz (AT) bestwebz (DOT) net> wrote in message
news:vq0ri9igsqrda5 (AT) corp (DOT) supernews.com...
Can anyone please point me to a good UML tutorial that contains
C++ example code? The stuff I've found on the web and on the bookstore
shelves doesn't contain any actual C++ code. Googling, so far I've found:
http://www.lysator.liu.se/~alla/dia/umltut/
I've looked at the general UML tutorials, but I'm having trouble making
the leap between that and actual code.
The reason I'm looking is, I find that once I get 8 or so classes in my
projects all working together, I start to lose track of what everybody's
doing. I try to sketch out drawings with boxes for classes, and arrows
connecting them in various ways, but it ends up being my own concoction
that doesn't work as well as I'd hoped. I want to be able to make some
diagrams and tape them up by my monitor to keep my head on straight
while I'm working. :)
Finally, a question; for those of you that took the time to learn UML
and have used it on C++ projects: have you found using UML useful?
--
--- remove zees if contacting via email ---
|
I'd say overall learning UML is better than not knowing it but its not
what its
cracked up to be....maybe what you need is a good IDE....I have found
Source Navigator (a free tool on Linux and Windows) a useful one as it
gives you
all sorts of class hierarchy, cross referencing , etc, etc
Based on what you are describing your pain is in the maintenance
phase. While
UML is good to express a design, it soon becomes an overhead during
maintenance
as you'll fall behind in updating the diagrams and soon, you'll be
spending more time
updating the graph...and those tools who claim to render code or read
code and
render graph will soon begin to influence your coding practices.
Oh...there is another reason to know UML.....when you are looking for
your next job
those Head Hunters will be looking for it in your resume....some might
even attempt
to take some tips on how to become a model :-)
|
|
| Back to top |
|
 |
John Gabriele Guest
|
Posted: Thu Oct 30, 2003 4:18 pm Post subject: Re: UML tutorial with actual C++ example code? |
|
|
| Quote: | Can anyone please point me to a good UML tutorial that contains
C++ example code? [snip]
Hi John,
You might want to have a look at Class Builder
https://sourceforge.net/projects/classbuilder
It's OpenSource, it's a UML like (could be UML pure but I'm just not sure
enough, but it's a great object generation tool that does manage
aggregations and other OOP design concepts). class generation tool and it
generates C++ so might bea good tool to bridge the gap between UML and C++
for you.
--
Stéphane Richard
|
Thanks Stéphane. It's an impressive tool, though I don't think it'll work
for me here on Mac OS X.
| Quote: |
I'd say overall learning UML is better than not knowing it but its not
what its
cracked up to be....maybe what you need is a good IDE....
|
Thanks for the reply Medi. I've used SlickEdit in the past. Currently using
Apple's Xcode with "Panther" (OS X 10.3). I've definitely become spoiled
rotten by the code browsing features. :)
| Quote: | I have found
Source Navigator (a free tool on Linux and Windows) a useful one as it
gives you
all sorts of class hierarchy, cross referencing , etc, etc
Based on what you are describing your pain is in the maintenance
phase. While
UML is good to express a design, it soon becomes an overhead during
maintenance
as you'll fall behind in updating the diagrams and soon, you'll be
spending more time
updating the graph...
|
I see what you mean. Perhaps my rough sketches are enough after all...
| Quote: | and those tools who claim to render code or read
code and
render graph will soon begin to influence your coding practices.
|
Interesting. Makes me wonder if they influence them for the better. :)
| Quote: | Oh...there is another reason to know UML.....when you are looking for
your next job
|
Heh. That's me right now.
| Quote: | those Head Hunters will be looking for it in your resume....some might
even attempt
to take some tips on how to become a model
|
A UML model or a fashion model? ;)
--
--- remove zees if contacting via email ---
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|