A former software engineer suggests six best practices from application development that you can apply to screenwriting.