Best practices on writing a script

Follow these general practices when writing a regular or a data migration script: