[livecode] Code Design: environment vars vs. dictionary approach

From: Jonas Hummel <news_at_jonashummel.de>
Date: Fri, 14 Feb 2014 10:14:41 +0000

Hi all,

I am not a fluent SC coder and still pick up a lot from what other
people do out there or what's to be found on sccode.org.

In a recent project I found myself again wondering on the question of
how to design the variables for values and functions. So I thought that
this community may have some good answers on what actually differences,
advantages or problems of using environment variables (~myvar1 = … ) vs.
a dictionary approach (q=(); q.myvar1 = …) are.

And for live coding purposes: Do you use global vars a lot (x = …) ?
or better not because they are limited in number?

I don't have any concrete examples as this is rather a general design
decision.
Thanks for your comments!

cheers


Jonas
Received on Fri Feb 14 2014 - 10:15:37 GMT

This archive was generated by hypermail 2.4.0 : Sun Aug 20 2023 - 16:02:23 BST