Scripting Standards

Stop by to discuss use cases, requirements, information architecture, flow diagraming, unit testing and usability.

Moderators: FourthWorld, Klaus

Post Reply
chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 244
Joined: Wed May 11, 2011 7:50 pm
Location: Southern California

Scripting Standards

Post by chipsm » Tue Mar 07, 2017 6:16 pm

When I script, I try to use some of the following standards:
I do use comments to explain my scripts -
If I have to go back at a later time and even in recent reviews, I use comments to explain my logic for the script.
I also use the following comment tags:
I use all caps so that the comment stands out. I also use the "#" to mark permanent comments and I use "--" to mark scripts that are temporary or for testing purposes. This is the comment that LiveCode provides under the Edit Menu: "Comment and Uncomment" choices. I can look for these comments and repair, replace or eventually make them permanent.

For custom commands, I use the "Command" word rather than the default "On" that LiveCode provides for buttons and etc. This allows me to quickly see my custom commands vs the standard commands.

These are just a few standards that I use besides the recommended standards for variables and the likes that other, more experienced LiveCode users.
I make these comments and look forward to input from some of the other, and Novice and even the more experienced LiveCode users. Some great ideas come Novice users too.

I realize that this may seem trivial but please don't ignore this post. I am always open to all user input. It stimulates creativity.
Clarence Martin
chipsm@themartinz.com

Post Reply

Return to “Software Engineering”