Updates

Latest Tweet



What's New?

Check out for latest innovation, a computer based training video collection


Like this Page

The Book of JavaScript: A Practical Guide to Interactive Web Pages Review by Juriy Zaytsev

Poor quality

This book is of such poor quality that beginners are better off skipping it altogether, to avoid even getting familiar with outdated and harmful practices. Only looking at a section on form validation, one could find a dozen of mistakes. Figure 11-2, being only 60 lines, is a mix of bad markup and poor code.

1) No doctype
2) Ancient, unnecessary html comments in scripts
3) Non-standard form access
4) Inefficient property access in a loop (`loop < window.document.the_form.gender.length`)
5) `if (<...>.checked == true)`
6) rad_select = "no"/"yes", not boolean, name not descriptive
7) unnecessary global variable in onSubmit, attribute name is of mixed case
8) html is not valid (form contains inline elements)
9) No corresponding labels or titles on form controls, inaccessible
10) Mix of camelcase and underscores