Book a Demo

Author Topic: code examples  (Read 7580 times)

billinares

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • ?
    • View Profile
code examples
« on: November 26, 2007, 05:56:15 am »
Sorry if following request has been posted already.

I work in a rather large team in a new SW project. We use EA & UML for the design phase. Unfortunately we do not have much experience with UML and subsequent implementation in embedded system applications. Where can I find good UML design examples with corresponding implementation (preferably in C++)? I have seen lots of modeling examples in books, but hardly any code made from those class diagrams.

Thank you

ukmtk

  • EA User
  • **
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: code examples
« Reply #1 on: November 26, 2007, 11:03:58 pm »
I don't think that it is something that you can get from a book. Most examples in books are too terse for a start. They are also generally of questionable quality.

You would be better off hiring a suitably qualified mentor. Of course they are quite rare in themselves - much like good coding books.

billinares

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • ?
    • View Profile
Re: code examples
« Reply #2 on: November 27, 2007, 12:05:17 am »
I'm not really looking for text-book examples, but real life stuff. Come on forum, you guys out there don't just use EA to draw nice charts and sell them. At the end of the day somebody has to bring all those classes and relationships down to earth (or into a target processor). Even a google search (e.g. UML code) does not bring anything useful (at least not in the first 10 or so pages).

Thanks for any help

thomaskilian

  • Guest
Re: code examples
« Reply #3 on: November 27, 2007, 09:14:37 am »
Here I am. Give me 1 M€ and I steel the stuff from my clients.

What are you dreaming at night? :o
« Last Edit: November 27, 2007, 09:15:39 am by thomaskilian »

billinares

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • ?
    • View Profile
Re: code examples
« Reply #4 on: November 28, 2007, 06:35:51 am »
No, I don't want your valuable code! Just some realistic, basic examples of how a model gets implemented (i.e. how does aggregation gets implemented differently from composition, etc). I know, it's hard to gain those skills until it becomes so familiar one think it trivial. But there is no reason to deride those stuck at the beginning.

thomaskilian

  • Guest
Re: code examples
« Reply #5 on: November 28, 2007, 08:47:41 am »
Once again. Do you think I create training models out of my customers models? Not for the fun of it. You might be lucky to find someone with appropriate training material. But not here.

For sure!

jeshaw2

  • EA User
  • **
  • Posts: 701
  • Karma: +0/-0
  • I'm a Singleton, what pattern are you?
    • View Profile
Re: code examples
« Reply #6 on: November 28, 2007, 09:05:38 am »
Quote
...Just some realistic, basic examples of how a model gets implemented (i.e. how does aggregation gets implemented differently from composition, etc)...

The question is bigger than you think and contingent on many domain factors.  You might start with simple diagrams and then see what the EA code generator does with it.  You might also read Design Patterns in the Head First series, O'Reilly.
Verbal Use Cases aren't worth the paper they are written upon.

Martin Spamer

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: code examples
« Reply #7 on: December 11, 2007, 08:34:06 am »
Design Patterns has good UML design and some of the example code is C++.  You can also find an EA 'template' of the patterns from the book here. EA does code generation so try generating code from the patterns.  EA also does reverse engineering so try reverse engineering some of your existing code.
« Last Edit: December 11, 2007, 08:45:03 am by Martin_Spamer »

billinares

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • ?
    • View Profile
Re: code examples
« Reply #8 on: December 11, 2007, 11:02:05 pm »
gracias amigo