Is this mad?

Eric Chatonet eric.chatonet at sosmartsoftware.com
Thu Apr 17 10:23:46 EDT 2008


Sorry,

I did not read this post correctly:

I just wanted to say that repeat for each line tProtein in  
tAllProteins sounds better than repeat for each line tLine in  
tAllProteins.
As for the rest, the engine has to understand what you want :-)

Le 17 avr. 08 à 16:00, Eric Chatonet a écrit :
> Bonjour Rob,
>
> Le 17 avr. 08 à 14:38, Beynon, Rob a écrit :
>> Sometimes when writing code, I write things like
>> Repeat for each line protein in allProteins
>> Repeat for each char aminoAcid in protein
>> Etc etc
>>
>> I'd really like this to look like this, defining a new function  
>> 'synonym'
>>
>> make protein a synonym of line
>> make aminoAcid a synonym of char
>>
>> Repeat for each protein in allProteins
>> Repeat for each aminoAcid in protein
>>
>> Etc etc
>>
>> Does the extensibility/flexibility make code easier or harder to  
>> read/use?
>
> Not mad at all :-)
> More, it's 'perfect' English like xTalk, surely more understandable.
> When you use tLine you think as an 'almost abstract' programmer;  
> using tProtein you rely on a biological process you want to set.
>
> Just have a look at http://www.fourthworld.com/embassy/articles/ 
> scriptstyle.html to mix names that make sense and some good habits  
> listed by Richard that will enforce understandability :-)
>
> Best regards from Paris,
> Eric Chatonet.




More information about the use-livecode mailing list