Reply to Re: The importance of commenting your code
If you don't have an account, just leave the password field blank.
January 26th 2012, 04:38 AM

shevek


in case you come back and try to read it yourself ten years later.
Make that ten hours. Or, in case of DinkC, where you had to torture your brain a lot more than with other languages, perhaps even ten minutes...
The code you show seems buggy, but indeed, if there would be comments they could show that it was done on purpose (which doesn't mean it was sane
) According to the docs, the active attribute can be read back. So you can use it as a variable, as long as you don't set it to 0.
The fact that &secret == 8 is skipped is most likely a real bug, though. If there's on sp_active (..., -1) in this or any other script, then you may conclude that the 11 is a typo and it would have been useless anyway to set it to 1...
Make that ten hours. Or, in case of DinkC, where you had to torture your brain a lot more than with other languages, perhaps even ten minutes...
The code you show seems buggy, but indeed, if there would be comments they could show that it was done on purpose (which doesn't mean it was sane

The fact that &secret == 8 is skipped is most likely a real bug, though. If there's on sp_active (..., -1) in this or any other script, then you may conclude that the 11 is a typo and it would have been useless anyway to set it to 1...