Re: MasterLibrary Naming
1) IMHO underscores are good for internal functions but not good for public functions of a library. A common prefix for public function is good since it is clear which library is called. 2) I actually like get in function names and see no issue when combining these with put. Put handles the result of get. Get tells me what function does. On 07.03.2015 at 13:06 Uhr -0500 Michael Doub apparently wrote: I wanted to start a separate thread so I can track the results. Elsewhere there was a discussion about the use of double underscore in the names. So I would like feedback: 1) should I remove the double underscores from the function and handlers names? and 2) should I remove the "get" from function names? Please reply with your opinion and I will follow the majority. A simple "yes,yes" will work. I will assume the order is 1,2 Regards, Mike ___ 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
Re: MasterLibrary Naming
Jacque- Saturday, March 7, 2015, 11:50:47 AM, you wrote: Agreed (yes, don't care). I have a slight preference for removing the "get" prefix because, like Jacque, I use "put" with the functions to place the value into a variable. In that case put getXXX() into tVar looks bizarre to me. But it works either way, so I'm in the whatever camp. -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. ___ 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
Re: MasterLibrary Naming
On 3/7/2015 12:06 PM, Michael Doub wrote: 1) should I remove the double underscores from the function and handlers names? Yes. I find it distracting and hard to type. 2) should I remove the "get" from function names? Not particularly. I do the same thing all the time. Almost all my stacks have getPref and setPref handlers, and I've seen the same thing in some widely used tools (I believe GLX does it if I remember right.) My current project has many of these, it's a convention I've used for almost 30 years. And as mentioned, I almost never use "get" with these, I "put" them, so the labels I've chosen read fine. I think this is a stylistic issue and you should do whatever you want. Many others have come before you so you are not alone. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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
Re: MasterLibrary Naming
yes (strongly), yes (not so strongly) -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Mar 7, 2015, at 1:06 PM, Michael Doub wrote: > I wanted to start a separate thread so I can track the results. Elsewhere > there was a discussion about the use of double underscore in the names. So > I would like feedback: > > 1) should I remove the double underscores from the function and handlers > names? > > and > > 2) should I remove the "get" from function names? > > Please reply with your opinion and I will follow the majority. A simple > "yes,yes" will work. I will assume the order is 1,2 > > Regards, > Mike > > > ___ > 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
Re: MasterLibrary Naming
yes, either way is fine On Sat, Mar 7, 2015 at 10:09 AM Michael Doub wrote: > I wanted to start a separate thread so I can track the results. > Elsewhere there was a discussion about the use of double underscore in > the names. So I would like feedback: > > 1) should I remove the double underscores from the function and handlers > names? > > and > > 2) should I remove the "get" from function names? > > Please reply with your opinion and I will follow the majority. A > simple "yes,yes" will work. I will assume the order is 1,2 > > Regards, > Mike > > > ___ > 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