Have been experimenting with applying scripts to my own game creations to get a feel for how it all works.
about 99% of all the scripts I write come up with an error of some sort....while they are technicly written correctly just about every error is due to a missing ; or " or , and in a few cases I missed one of these )
I figure punctuation is probably the bane of most programmers so most of you have already been through this issue. Can anyone give me some tips/advice on how I can reduce the number of grammer mistakes I make in my scripts or even tips on how to find such mistakes because I find them incredibly difficult to spot even when I'm looking for them.
Here's an example, I can look at the below line of code for 10 minutes before I figure out what's wrong with it :
But once I finally notice the missing ) on the end, I can't help but see it...it's like a thumb that was smashed by a hammer. But untill I actually notice it I can study that one line for god knows how long and not see the error.
Is there some kind of magic trick to correcting your grammar,...or is it just something that comes with time and practice?
God only knows I suck at grammer when writing plain english, but that don't matter too much when humans are reading it since the human brain is a bit more advanced than the average processor. The human brain can fill in the blanks whereas a processor can't.
Of course the human brain filling in the blanks may be part of the reason why I don't see the missing punctuation straight away.