server scripting style

Observations on the development process

When using other scripting languages for server scripting, the result has been a file (sometimes large), but generally a single file.

I'm finding I now do things differently and I think better in GST. So here is the process now:-

  • Break the task into pieces which seem like objects (an Object manages its own data. If in doubt I just pick a chunk of work which seems autonomous and start there)
  • Make a class for the task, and then write at least one test method for the class. So in my FooBar class, there'll be a method something like:-
    test [
           | fooBar |

Syndicate content

User login