UML tutorial with actual C++ example code?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Gabriele

    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:


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

  • Stephane Richard

    #2
    Re: UML tutorial with actual C++ example code?

    Hi John,

    You might want to have a look at Class Builder

    Download ClassBuilder for free. ClassBuilder is freeware CASE tool targeted at the C++ developer, running on Win2K/XP/Vista/7. It lets you create, manipulate and navigate classes, class relations, class members and class methods at a high level of abstraction through a graphical user interface


    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@bestwe bz.net> wrote in message
    news:vq0ri9igsq rda5@corp.super news.com...[color=blue]
    > 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 ---
    >[/color]


    Comment

    • Medi Montaseri

      #3
      Re: UML tutorial with actual C++ example code?

      "Stephane Richard" <stephane.richa rd@verizon.net> wrote in message news:<1L_nb.274 14$294.12031@nw rdny03.gnilink. net>...[color=blue]
      > 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@bestwe bz.net> wrote in message
      > news:vq0ri9igsq rda5@corp.super news.com...[color=green]
      > > 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 ---
      > >[/color][/color]


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

      Comment

      • John Gabriele

        #4
        Re: UML tutorial with actual C++ example code?

        >>>Can anyone please point me to a good UML tutorial that contains[color=blue][color=green][color=darkred]
        >>>C++ example code? [snip]
        >>>[/color]
        >>
        >>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
        >>aggregation s 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
        >>[/color][/color]

        Thanks Stéphane. It's an impressive tool, though I don't think it'll work
        for me here on Mac OS X.
        [color=blue]
        >
        > 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....[/color]

        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. :)
        [color=blue]
        > 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...[/color]

        I see what you mean. Perhaps my rough sketches are enough after all...
        [color=blue]
        > and those tools who claim to render code or read
        > code and
        > render graph will soon begin to influence your coding practices.[/color]

        Interesting. Makes me wonder if they influence them for the better. :)
        [color=blue]
        > Oh...there is another reason to know UML.....when you are looking for
        > your next job[/color]

        Heh. That's me right now.
        [color=blue]
        > 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 :-)[/color]

        A UML model or a fashion model? ;)


        --
        --- remove zees if contacting via email ---

        Comment

        Working...