473,414 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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 ---

Jul 19 '05 #1
3 19129
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" <jo*****@bestwebz.net> wrote in message
news:vq************@corp.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 ---

Jul 19 '05 #2
"Stephane Richard" <st**************@verizon.net> wrote in message news:<1L*******************@nwrdny03.gnilink.net>. ..
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" <jo*****@bestwebz.net> wrote in message
news:vq************@corp.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 :-)
Jul 19 '05 #3
>>>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.

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. :)
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...
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. :)
Oh...there is another reason to know UML.....when you are looking for
your next job
Heh. That's me right now.
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 ---

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ralf Höppner | last post by:
Hallo, ich möchte gerne obigen XML Parser von der Apache-Seite (Version 2.4.0) in einem c++ Projekt einsetzen und suche dafür ein Tutorial. Kennt jemand vielleicht eins ? Mit den mitgelieferten...
4
by: binnyva | last post by:
Hello Everybody, I am writing an interactive tutorial for JavaScript. I created a text box into which the users can input javascript commands. On pressing a button, these commands will be...
15
by: binnyva | last post by:
Hello Everyone, I have just compleated a JavaScript tutorial and publishing the draft(or the beta version, as I like to call it) for review. This is not open to public yet. The Tutorial is...
156
by: jacob navia | last post by:
There is a C tutorial at http://www.cs.virginia.edu/~lcc-win32 It is written to go with the compiler, available at the same URL. I have added quite a bit of material, and I would be glad if...
5
by: FFMG | last post by:
Hi, Seen that support for PHP4 will be dropped at the end of the year I was thinking that maybe now might be a good time to start moving things. Is there a tutorial as to what I need to look...
2
Banfa
by: Banfa | last post by:
Posted by Banfa The previous tutorial discussed what programming is, what we are trying to achieve, the answer being a list of instructions constituting a valid program. Now we will discuss how...
6
Atli
by: Atli | last post by:
This is an easy to digest 12 step guide on basics of using MySQL. It's a great refresher for those who need it and it work's great for first time MySQL users. Anyone should be able to get...
0
by: Omar Abid | last post by:
Reason of this project: The Microsoft.VisualBasic.Interaction class exposes many useful commands and methods that were available in Visual Basic like AppActivate, Beep, Callbyname... This...
182
by: Bill Cunningham | last post by:
I understand this code. int a; int b; for (b=0;b<5;b=b+1) int a; This should take every element of the array a and set it to 1,2,3,4,5. Great. Now for the big question. How would you work...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.