Dependence on Programming Experts
John Tregea
john at debraneys.com
Tue Jul 11 22:15:48 EDT 2006
-- continue thread even further
put 1 into x
Point x: I am not a programming expert
Point x = x + 1: but some things seem to make my world harder to
understand
Point x = x + 1: and it is hard enough already
Point x = x + 1: you get my point?
Isn't it likely that the number 5 represents a count of something, i.e. ;
the number of buttons in a group
the number of working days in the week
the number of cups of coffee I drank this morning
the number of lines in a text field etc.
I would almost never use the number itself, rather I find the way of
describing the thing being counted and use the language to get the count
initially. Then I would use gGroupedBtns or tMyCoffees as the variable
name so I can remember what I was counting when I reference it later in
my code.
-- end of abstract thinking about abstract concepts
tMyCoffees = tMyCoffees + 1 (ahhhhhhh... that's better)
John T
Sarah Reichelt wrote:
> On 7/12/06, Josh Mellicker <josh at dvcreators.net> wrote:
>> I have found Rev extremely intuitive except for one thing:
>>
>> I wish it would parse
>>
>> x = 5
>>
>> (if not following an IF)
>>
>> the same as
>>
>> put 5 into x
>>
>
> I would like this for speed of scriptiing reasons, but not for logic
> reasons - if that makes sense. It would be much faster to type "x = 5"
> than "put 5 into x" but less logical.
>
> When I first started to learn programming (many years ago), I came
> across a line like this:
> x = x + 1
>
> My eyes glazed over as I tried to work out what they meant by this
> obviously false statement! How can anything be equal to itself plus 1
> - that's just crazy. So I'm happy to stick to "put 5 into x" and "add
> 1 to x" :-)
>
> Cheers,
> Sarah
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
More information about the Use-livecode
mailing list