it and explicitVar?

Mark Schonewille m.schonewille at economy-x-talk.com
Thu Nov 22 16:46:34 EST 2012


Malte, +1 for global constants.

Joe, I don't understand people who don't put quotes around literals. In my view, this is bad programming. 

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com

We have time for new software development projects. Contact me for a quote.




On 22 nov 2012, at 22:42, Malte Brill wrote:

> Even though explicit vars (or strict compile mode in the prefs) is considdered to be a major headache by some, I have never looked back since I started to make this a prerequisite in all the code my company writes for others. When we have people writing code for us, we also require it to compile in strict mode, otherwise the code is not accepted. It adds little extra work, but helps tremendously when debugging or refactoring. I can only encourage people to use strict compile mode. You will quickly find all typos and it actually makes for cleaner code. I would even want the engine to be (optionally) a little stricter and introduce typed variables (and global constants *sigh), well I might be one of only a few there, but wishful thinking never hurts. :-)
> 
> Cheers,
> 
> Malte





More information about the use-livecode mailing list