#1: Review your own code - Before you ask someone else to review your code, make sure to review it yourself. Most likely, you'll find code remnants that you didn't intend to be included in the final production code.
#2: Remove spurious changes - In a typical code review, it is quite common to find that whitespace (spaces, tabs, carriage returns) has been added or removed in existing code, where those whitespace changes are strictly unrelated to the code changes required to fix a bug or implement a feature…
Read more
Good code is not just functional, but also elegant. Elegant code must be:
Well-factored
Well-commented
Consistent in its style
In a series of posts, we'll discuss coding style for the JavaScript language. In this first post, we'll focus on style guidelines for variables.
Read more
jQuery is an absolute requirement for any browser-based application or site. Why write 100 lines of DOM manipulation code using the W3C API when you can do the same work in 3 lines of jQuery? Plus, there are hundreds if not thousands of jQuery-based plugins available, many either free or modestly priced. These plugins solve common problems so that you don't have to.
Read more