John Resig - Secrets: Table of Contents (original) (raw)

After all the terrific feedback that I received from my post on the Untold Secrets of JavaScript I began to compile a Table of Contents that would serve as a guide for the rest of my next book (final title or publisher as yet to be determined).

I’d love some feedback as to the structure and contents of the full table of contents, as it stands:

  1. Introduction (Overview of the contents of the book; introduction to its style and format.)
    1. Test-driven book
    2. Test suite and examples
    3. Perf. test suite and examples
    4. The advanced features of the JavaScript Language
    5. How to tackle cross browser code
    6. Overview of best practices

JavaScript Language

Looking at the most advanced features of the JavaScript language, in depth, completely analyzing how they work and how they can best be used to implement incredible production code.

  1. Functions (Explain the importance of functional programming and show it’s severe capabilities and applicability.)
    1. call/apply
    2. arguments slice
    3. Math.sum()
    4. typeof fn == “function”
    5. fn.length
    6. makeClass()
  2. Closures (In-depth explanation of how closures work, their applicability, and usefulness throughout the language.)
    1. How closures work (interactive visual)
    2. Events & Timers
    3. fn.bind()
    4. Currying
    5. Self-replacing functions
    6. (function(){})()
      1. Loops
      2. Library wrapper
      3. Scope / Private Variables
      4. .call(this)
  3. Timers (In-depth explanation of how timers work internally in the JavaScript engine and how to take advantage of them.)
    1. How timers work (interactive visual)
    2. Using closures w/ timers
    3. Central Timer Queue
    4. “Threading” CPU-intesive tasks
  4. Object Prototypes (An overview of prototypes and how they can be used to build complex data structures.)
    1. Gotchyas
    2. Speed benefits
    3. Native Prototypes
    4. Class-like code
    5. Inheritance
    6. Namespacing
  5. RegExp (A deep look at the functionality provided by the JavaScript RegExp engine.)
    1. .replace(re, fn)
    2. Non-capturing RegExp
    3. Backreferences
    4. Pre-Compiled RegExp
    5. Unicode
    6. Escaped characters
  6. with(){} (Understanding how with works – its benefits and how it can be best used.)
    1. Understanding with: Pros and cons
    2. Packages and Namespacing
    3. function test(){with(this){ … }}
    4. Templating
  7. eval (How the eval function can benefit the clarity and functionality of your code in a cross-browser manner.)
    1. new Function
    2. eval.call