Hi, I was just wondering how most people go about planning their programs. Obviously anything for than a few hundred lines needs some thought, but do most people draw a few diagrams and scribble ideas down or do most people prefere something structured, such as UML?
Just curious really cos I wanna make a decent attempt at getting back into C++!



LinkBack URL
About LinkBacks



That is also where I test sections of my code. For example, write the Card class (for a standard playing card) and then run it through a simple engine to create every possible card and print all the values (including invalid and impossible cards to test error handling). Next, comes the Deck class that uses an array of 52 Cards and a simple engine to test every function in the Deck class (shuffling, sorting, dealing 57 cards from the 52 card deck, etc). Next the Dealer class who uses the Deck, or go back to .txt if the Dealer class doesn't work the way I want it to (maybe incorporate the Deck into a Poker Table instead of a Dealer, or something else entirely).
"