Before Coding

This is a discussion on Before Coding within the C++ Programming forums, part of the General Programming Boards category; I also put the pseudo code on paper. Then I code my class interfaces first...making sure everything that I want ...

  1. #16
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Location
    Mt. Prospect, IL
    Posts
    2,572
    I also put the pseudo code on paper. Then I code my class interfaces first...making sure everything that I want to do could be done with these interfaces. Then I write the class implementations, and thn the driver program. I often find that my original class interfaces had many extra things in them that I really didn't need to accomplish the final goal.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  2. #17
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    I usually only plan out the bigger coding projects... here's how I worked out my battle system:

    Code:
    1) I want to make a battle system
    2) I want the battle system to have:
              characters
              stats
              leveling
              points system
    3) characters
              user-defined name/password
    4) stats
              HP,ATK,DEF,SPD. (hit points, attack, defense, speed)
    5) leveling
              based on a points system
              2^user's current level==points needed to level
              points gained after battle:
                   points=opponent's level-user's level
                   points*=(user's left over HP-user's beginning HP)
    6) points system
              points can be added to stats
              3 points for every level gained
    then I put it into a nifty outline and work my program from there... If I need it more detailed, I'll break it down into classes, like one to handle the battle & leveling, one to read & write out stats, one to deal with the points, etc.
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 03-20-2009, 05:22 PM
  2. pointer coding
    By princez90 in forum C Programming
    Replies: 2
    Last Post: 05-15-2008, 10:07 AM
  3. Coding Guideline ....!!
    By imfeelingfortun in forum Tech Board
    Replies: 8
    Last Post: 10-08-2006, 07:09 AM
  4. Coding Contest....
    By Koshare in forum A Brief History of Cprogramming.com
    Replies: 46
    Last Post: 10-14-2001, 04:32 PM

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