000 | 02992cam a2200337 a 4500 | ||
---|---|---|---|
001 | 610863645 | ||
003 | OCoLC | ||
005 | 20190729104815.0 | ||
008 | 100517s2010 caua 001 0 eng | ||
020 | _a9780596806750 (pbk.) | ||
020 | _a0596806752 (pbk.) | ||
035 | _a(OCoLC)610863645 | ||
040 |
_aUKM _cUKM _dBTCTA _dYDXCP _dORX _dCDX _dTXA _dMiTN |
||
042 | _apcc | ||
049 | _aEY8Z | ||
050 | 4 |
_aQA76.73 .J39 _bS74 2010 |
|
092 |
_a005.2762 _bSt327J |
||
100 | 1 | _aStefanov, Stoyan. | |
245 | 1 | 0 |
_aJavaScript patterns / _cStoyan Stefanov. |
260 |
_aSebastopol, CA : _bO'Reilly, _cc2010. |
||
300 |
_axvi, 216 p. : _bill. ; _c24 cm. |
||
504 | _aIncludes index. | ||
505 | _aPreface -- 1. Introduction -- Patterns -- JavaScript: concepts -- ECMAScript 5 -- JSLint -- The Console -- 2. Essentials -- Writing maintainable code -- Minimizing globals -- For loops -- For-in loops -- (Not) augmenting built-in prototypes -- Switch pattern -- Avoiding implied typecasting -- Number conversions with parseInt() -- Coding conventions -- Naming conventions -- Writing comments -- Writing API docs -- Writing to be read -- Peer reviews -- Minify...in production -- Run JSLint -- Summary -- 3. Literals and constructors -- Object literal -- Custom constructor functions -- Patterns for enforcing new -- Array literal -- JSON -- Regular expression literal -- Primitive wrappers -- Error objects -- Summary -- 4. Functions -- Background -- Callback pattern -- Returning functions -- Self-defining functions -- Immediate functions -- Immediate object initialization -- Init-time branching -- Function properties -- a memorization pattern -- Configuration objects -- Curry -- Summary 5. Object creation patterns -- Namespace pattern -- Declaring dependencies -- Private properties and methods -- Module pattern -- Sandbox pattern -- Static members -- Object constants -- Chaining pattern -- Method() method -- Summary -- 6. Code reuse patterns -- Classical versus modern inheritance patterns -- Expected outcome when using classical inheritance -- Classical pattern #1 -- the default pattern -- Classical pattern #2 -- rent-a-constructor -- Classical pattern #3 -- rent and set prototype -- Classical pattern #4 -- share the prototype -- Classical pattern #5 -- a temporary constructor -- Klass -- Prototypal inheritance -- Inheritance by copying properties -- Mix-ins -- Borrowing methods -- Summary -- 7. Design patterns -- Singleton -- Factory -- Iterator -- Decorator -- Strategy -- Facade -- Proxy -- Mediator -- Observer -- Summary -- 8. DOM and browser patterns -- Separation of concerns -- DOM scripting -- Events -- Long-running scripts -- Remote scripting -- Deploying JavaScript -- Loading strategies -- Summary -- Index. | ||
650 | 0 | _aJavaScript (Computer program language) | |
650 | 0 | _aSoftware patterns. | |
650 | 0 | _aWeb site development. | |
948 | _au353311 | ||
949 |
_aQA76.73 .J39 S74 2010 _wLC _c1 _hEY8Z _i33039001216836 |
||
596 | _a1 | ||
903 | _a23196 | ||
999 |
_c23196 _d23196 |