• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Calling Out All Programmers/Coders/Scripters/Whatever You Call Yourself Out

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:

    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:
    I would die without pseudocode. I find it ridiculously useful for organising all my thoughts about what I want my script to do, and working out nice neat ways to write it. I remember in my software class in year 11/12, we were always getting tested on it, and having to write it out for whatever we were working on, and it was such a great habit to get into.


    I hate reading other programmers pseudo code n trying to figure wth they actually wanted thats why I dont use it...

    why are you reading other programmers' pseudocode? tbh it's more of a personal thing, just working out for yourself in your own scrawling shorthand how you're going to code something. why would someone show you that, and not ... y'know, the actual code that they wrote afterwards?

    edit: and yeah, op's pseudocode is fairly um, language-specific, which it really doesn't need to be.
     
    I am sure most people do this in some form. When I am creating something that needs various functions I will just make placeholder notes so I can remember all the functions I want to do. However this is more of me being forgetful than anything. xD

    Comes in handy when you have a lot of functions to create or when creating a system from scratch.
     
    I hate reading other programmers pseudo code n trying to figure wth they actually wanted thats why I dont use it...

    EDIT: oh and the above isnt really pseudo code
    What I hate is reading code... even the ones I wrote... LOL I am terrible at commenting and I get lost in my own code after not looking at it for a while... Yes not really pseudo code, its just a class structure
     
    I don't really write pseudocode. I just dive right on in, and code what I want. The fact that I find it easy to read most Ruby code certainly helps, though.
     
    I do it all the time since I keep all my (global)variables in a singleton class. So I need to plan in advance what I'm doing so I don't waste memory (talking about my C#/C++/Objective-C work).

    I do it sometimes for the RPG Maker game just so I'm not going blind into the code.
     
    Back
    Top