Monte,

You might as well ask: Coke or Pepsi? or Mac or Windows? or iOS or
Android? or Burger King or McDonalds or (pick your favorite non-American
head to head competing things) :-)

And is complex because, for example, I like the looks of "put
Something() into container" in my code. However, when looking in the
dictionary or a list of my own APIs for my apps, where just the name is
listed, I like seeing the action (i.e. GetSomething()) as part of the
name as it reminds me of the intended action of the function.

On 11/3/2016 6:16 PM, Monte Goulding wrote:
> Hi LiveCoders
>
> In a PR I have open Peter has asked me to `Please name this function with a 
> verb` and I recognised that in LiveCode this is something I don’t do out of 
> habit while in other languages it is. Why? Because in the context the a 
> function is used there is already a verb in the statement in our language. I 
> definitely think verbs should be used for custom handler names though. It 
> seems to me that if my gut feeling and what I’ve been practicing for a long 
> time is seen as general best practice for the community then it should be 
> documented.
>
> I notice that there’s a mix of noun and verb engine functions.
>
> What do people think:
>
> put GetSomething() into container
>
> or 
>
> put Something() into container
>
> BTW I’m happy to change my ways I’m just curious what people think.
>
> Cheers
>
> Monte
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to