By: Spencer, Lawrence.
|Item type||Current location||Call number||URL||Status||Date due||Barcode|
|Electronic Book||UT Tyler Online Online||QA76.73.J39 (Browse shelf)||http://uttyler.eblib.com/patron/FullRecord.aspx?p=1964112||Available||EBL1964112|
Engineering Your Code to Be Easy to TestSummary; Chapter 2: Tooling Up ; Using a Testing Framework; Identifying Incorrect Code; Designing for Testability; Writing the Minimum Required Code; Safe Maintenance and Refactoring; Runnable Specification; Current Open-Source and Commercial Frameworks; QUnit; D.O.H.; Introducing Jasmine; Suites and Specs; Expectations and Matchers; Spies; Using a Dependency-Injection Framework; What Is Dependency Injection?; Making Your Code More Reliable with Dependency Injection; Mastering Dependency Injection
Case Study: Writing a Lightweight Dependency-Injection FrameworkUsing a Dependency-Injection Framework; Current Dependency-Injection Frameworks; RequireJS; AngularJS; Using an Aspect Toolkit; Case Study: Caching with and without AOP; Implementing Caching without AOP; Making Your Code More Reliable with AOP; Case Study: Building the Aop.js Module; Other AOP Libraries; AspectJS; AopJS jQuery Plugin; YUI's Do Class; Conclusion; Using a Code-Checking Tool; Making Your Code More Reliable with Linting Tools; Introducing JSHint; Using JSHint; If You Don't Run It, Bugs Will Come
Alternatives to JSHintJSLint; ESLint; Strict Mode; Summary; Chapter 3: Constructing Reliable Objects; Using Primitives; Using Object Literals; Using the Module Pattern; Creating Modules-at-Will; Creating Immediate-Execution Modules; Creating Reliable Modules; Using Object Prototypes and Prototypal Inheritance; The Default Object Prototype; Prototypal Inheritance; Prototype Chains; Creating Objects with New; The new Object Creation Pattern; Potential for Bad Things to Happen; Enforcing the Use of new; Using Classical Inheritance; Emulating Classical Inheritance; Repetition Killed the Kangaroo
Using Functional InheritanceMonkey-Patching; Summary; Part II: Testing Pattern-Based Code; Chapter 4: Reviewing the Benefits of Patterns; Case Study; Producing More Elegant Code by Using a Broader Vocabulary; Producing Reliable Code with Well-Engineered, Well-Tested Building Blocks; Summary; Chapter 5: Ensuring Correct Use of the Call back Pattern; Understanding the Pattern Through Unit Tests; Writing and Testing Code That Uses Callback Functions; Writing and Testing Callback Functions; Avoiding Problems; Flattening the Callback Arrow; Minding this; Summary
Chapter 6: Ensuring Correct Use of the Promise Pattern
Description based upon print version of record.