But for our purposes, we don't code with the expectation to use said side effects, and using these operators for loops is highly convenient. Tolerate ++ and - ( plusplus): This is meant to keep developers out of trouble if they're expecting to use these operators and their side effects.Tolerate messy whitespace ( white): This puts a lot of strictures on code formatting that don't comply with our own coding styles (most notably spaces around parenthesized expressions and line breaks before opening new curly braces).For our project's purposes, though, there are a few standard JSLint checks we decided to ignore: Not only would this check our code, but it also introduced a lot of useful standards to keep anyone programming Javascript from getting themselves in trouble accidentally. The best method we found for this was JSLint: (Previous entries: Part 1, Part 2, Part 3)Ĭode Error Checking, Standards, and ObfuscationĪs we continued the project, we realized we needed to have at least some validation for our code so it wouldn't take so long to debug problems that turned out to be simple syntax errors or otherwise mis-typed values. For the final installment, we will look at JSLint, accelerometer input on mobile devices, and audio.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |