davidthefat
I Love C++
- 437
- Posts
- 15
- Years
- Seen Mar 3, 2012
So how many of you actually do pseudo coding? If you don't know what that means, its basically writing down all your goals and have a over simplified version of your code on paper.
Example:
^^^^
Thats basically a what a C++ header file contains, but you get the idea, its simple and everyone that speaks english has an idea whats going on.
You can apply it to any language. IDK Ruby (I am assuming thats the scripting language RPGM uses) but you get the point.
Plan everything out before you even touch the key board (actually unless you are pseudo coding on a word processor)
does anyone do anything like that? I think its a break habit to get into, it helps you find problems even before you code and it helps you stay on track.
Coding should really take the least amount of time, the planning should take the most.
EDIT: Not very good example for psuedo coding... Over simplify it more
Example:
Code:
class Actor
{
protected:
int HP;
int Energy;
int State; //Attacking, Idle, Patrolling
string Name;
Location loc; //Location is another class
SDL_Surface spriteSheet;
public:
Actor(SDL_Surface inSprite);
void setLocation(Location temp);
Location getLocation();
int getHP();
int getEnergy();
int getState();
string getName();
}
Thats basically a what a C++ header file contains, but you get the idea, its simple and everyone that speaks english has an idea whats going on.
You can apply it to any language. IDK Ruby (I am assuming thats the scripting language RPGM uses) but you get the point.
Plan everything out before you even touch the key board (actually unless you are pseudo coding on a word processor)
does anyone do anything like that? I think its a break habit to get into, it helps you find problems even before you code and it helps you stay on track.
Coding should really take the least amount of time, the planning should take the most.
EDIT: Not very good example for psuedo coding... Over simplify it more
Last edited: