Planning
#1

I made a topic a while ago (here) about organizing scripts. Now I want to discuss something kinda similar: planning/preperation.

I VERY rarely plan my scripts. I generally just open up pawno and start typing away. I hear this is bad practise? After reading Gamer_Z's GPS plugin tutorial I thought about this, and wanted to discuss it. Does it really help that much? I often get 'confused' when making big systems, thinking 'where does this go' and 'did I miss something', so perhaps that is a sign.

Things I would plan:

- The variables I will need
- The functions/callbacks I will need
- How things will 'flow'
- The textdraws (if any)
- The mySQL/files (if used)

but beyond that, is there anything else I should plan?
Reply
#2

When you start coding larger projects (not necessarily in SA:MP) and separating the source into different modules, it is absolutely essential to plan beforehand. I use this approach when creating game modes and it really does make for more efficient coding. You don't need to search the file for specific parts of code, as you know which module they will be located. It is also great for scripting with a team.

I do not think you are thinking about the "planning process" correctly. Knowing what variables/functions/TDs/etc to know beforehand may be useful, but it is more important to know the structure of the project. How will you set it up? What are the different modules and what code will they contain? After answering those, it really is a walk in the park to start.
Reply
#3

As I said a few times in the topic about organizing scripts (here), I'm very turned off by using many files for code, just because it's not as easy to change stuff. I would like to learn how to do this properly though.

What do you mean by 'How you will set it up'?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)