Code Analysis

This is a discussion on Code Analysis within the C++ Programming forums, part of the General Programming Boards category; Is there some "standard" for OO and non-OO code analysis. I'd like something somewhat visual as well as something ... ...

  1. #1
    Registered User guesst's Avatar
    Join Date
    Feb 2008
    Location
    Lehi, UT
    Posts
    179

    Code Analysis

    Is there some "standard" for OO and non-OO code analysis. I'd like something somewhat visual as well as something ... conversational? That's not the word I'm looking for but it gets the idea across. I want something to give some technical information of the programs on my site, but don't want to reinvent the wheel.
    Type-ins are back! Visit Cymon's Games at http://www.cymonsgames.com for a new game every week!

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    There is no standard as far as I know, but I also only vaguely think I am understanding the question correctly, plus for some reason my network filter is blocking your link. I will check it out later.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,662
    What exactly do you mean by code analysis?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by guesst View Post
    Is there some "standard" for OO and non-OO code analysis.
    Use something like Doxygen to generate API docs. Here's an example:

    Irrlicht API

  5. #5
    Registered User guesst's Avatar
    Join Date
    Feb 2008
    Location
    Lehi, UT
    Posts
    179
    Quote Originally Posted by laserlight View Post
    What exactly do you mean by code analysis?
    Really what I'm looking for is some method of presenting the information to a beginner that an experienced programmer would get just by looking at the code. I want to use this on some of the most basic programming examples you've ever seen.

    When i was learning programming we used flow charts to track a program, but as I got better at programming we used these branching dependencies charts too. I suspect the dependency charts were made up by my teacher but they've been a fantastic way for me to lay out my programs and organize my thoughts. And while those dependency tables we're good time has marched on and so too I assume has the methods of organizing data in a way that works with conventions such as threads and OO design, so i shouldn't have to reinvent the wheel.

    APIs are okay but almost too technical and seem to be more for selling the features of a program than educating someone about how a program works. (I may be wrong about that.)

    maybe I'll have to throw together an example of what I'd do off the top of my head. maybe seeing it will help.
    Type-ins are back! Visit Cymon's Games at http://www.cymonsgames.com for a new game every week!

  6. #6
    Registered User slingerland3g's Avatar
    Join Date
    Jan 2008
    Location
    Seattle
    Posts
    602
    If I understand you correctly you may be looking for something like UML.

    http://en.wikipedia.org/wiki/Unified_Modeling_Language

  7. #7
    Registered User guesst's Avatar
    Join Date
    Feb 2008
    Location
    Lehi, UT
    Posts
    179
    Ah, now that looks good. Promising.

    Now comes the learning curve. And is there UML software out there to help me put these things together.
    Type-ins are back! Visit Cymon's Games at http://www.cymonsgames.com for a new game every week!

  8. #8
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by guesst View Post
    Ah, now that looks good. Promising.

    Now comes the learning curve. And is there UML software out there to help me put these things together.
    Search: UML software on google.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  9. #9
    Registered User guesst's Avatar
    Join Date
    Feb 2008
    Location
    Lehi, UT
    Posts
    179
    I guess that statement was more rhetorical since the wiki links to a list of UML tools
    Type-ins are back! Visit Cymon's Games at http://www.cymonsgames.com for a new game every week!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Proposal: Code colouring
    By Perspective in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 05-14-2007, 07:23 AM
  2. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 10:20 AM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 03:17 PM
  4. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 11:38 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21