Community Coding Standards, Naming Conventions, Best Practice in LiveCode Script for community contribution work

Bob Sneidar bobsneidar at iotecdigital.com
Thu Apr 27 12:36:59 EDT 2017


The problem with ambiguous counter names is that often there are nested repeat loops and knowing which counter for which loop is crucial to understanding the code. I almost never use i, j, k, l and when I do, I usually regret the choice and remember why I don't use them. 

Bob S


> On Apr 27, 2017, at 09:31 , Roland Huettmann via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> For local variables, I also do not like long expressions for simple
> counters which are created "on the fly". The most widely adopted standard
> is using i, j, k, l ... (not x and not tCount) -- but otherwise, local
> variables in LCS start with "t" in LCS as tSomething. But something should
> be recommended for all others to follow, and not just say "do as you like"





More information about the use-livecode mailing list