Effective Javascript

Effective Javascript pdf epub mobi txt 電子書 下載2025

出版者:電子工業齣版社
作者:[美]大衛·赫爾曼 (David Herman)
出品人:
頁數:206
译者:
出版時間:2016-3
價格:0
裝幀:平裝
isbn號碼:9787121273032
叢書系列:原味精品書係
圖書標籤:
  • javascript
  • JavaScript
  • 前端
  • Javascript
  • 編程
  • @上圖
  • JavaScript
  • 編程
  • 最佳實踐
  • 代碼質量
  • 設計模式
  • 性能優化
  • 可維護性
  • 函數式編程
  • 高級技巧
  • Web開發
想要找書就要到 小美書屋
立刻按 ctrl+D收藏本頁
你會得到大驚喜!!

具體描述

本書由資深 JavaScript 技術專傢 David Herman 所著。書中基於 JavaScript 標準的新版本前所未有地闡明瞭 JavaScript 語言的內部運作機製——幫助你充分利用 JavaScript 語言的錶現力。通過全書歸納的 68 個行之有效的方法和大量具體實例,作者詳細講解瞭如何更有效地運用這門靈活且富有錶現力的語言,以及如何規避其缺陷。你將學到如何選擇正確的編程風格,管理一些超齣意料的問題,以及成功使用 JavaScript 編程完成從數據結構到並發的方方麵麵。

無論你寫瞭多久的 JavaScript 代碼,本書都將有助於增進你對這門強大的編程語言的理解,助你編寫更可預測、更可靠且具維護性的程序。

著者簡介

David Herman,資深JavaScript技術專傢,Ecma TC39委員會成員,負責JavaScript的標準化工作。他擁有格林內爾學院的計算機科學學士學位和美國東北大學的計算機科學碩士及博士學位,現任Mozilla研究院高級研究員。

圖書目錄

推薦序
前言
緻謝
關於作者
Chapter 1: Accustoming Yourself to JavaScript
Item 1: Know Which JavaScript You Are Using
Item 2: Understand JavaScript's Floating—Point Numbers
Item 3: Beware of Implicit Coercions
Item 4: Prefer Primitives to Object Wrappers
Item 5: Avoid using == with Mixed Types
Item 6: Learn the Limits of Semicolon Insertion
Item 7: Think of Strings As Sequences of 16—Bit Code Units
Chapter 2: Variable Scope
Item 8: Minimize Use of the Global Object
Item 9: Always Declare Local Variables
Item 10: Avoid with
Item 11: Get Comfortable with Closures
Item 12: Understand Variable Hoisting
Item 13: Use Immediately Invoked Function Expressions to Create Local Scopes
Item 14: Beware of Unportable Scoping of Named Function Expressions
Item 15: Beware of Unportable Scoping of Block—Local Function Declarations
Item 16: Avoid Creating Local Variables with eval
Item 17: Prefer Indirect eval to Direct eval
Chapter 3: Working with Functions
Item 18: Understand the Difference between Function, Method, and Constructor Calls
Item 19: Get Comfortable Using Higher—Order Functions
Item 20: Use call to Call Methods with a Custom Receiver
Item 21: Use apply to Call Functions with Different Numbers of Arguments
Item 22: Use arguments to Create Variadic Functions
Item 23: Never Modify the arguments Object
Item 24: Use a Variable to Save a Reference to arguments
Item 25: Use bind to Extract Methods with a Fixed Receiver
Item 26: Use bind to Curry Functions
Item 27: Prefer Closures to Strings for Encapsulating Code
Item 28: Avoid Relying on the toStri ng Method of Functions
Item 29: Avoid Nonstandard Stack Inspection Properties
Chapter 4: Objects and Prototypes
Item 30: Understand the Difference between prototype,getPrototypeOf, and__proto__
Item 31: Prefer Object.getPrototype0f to __proto__
Item 32: Never Modify __proto__
Item 33: Make Your Constructors new—Agnostic
Item 34: Store Methods on Prototypes
Item 35: Use Closures to Store Private Data
Item 36: Store Instance State Only on Instance Objects
Item 37: Recognize the Implicit Binding of this
Item 38: Call Superclass Constructors from Subclass Constructors
Item 39: Never Reuse Superclass Property Names
Item 40: Avoid Inheriting from Standard Classes
Item 41: Treat Prototypes As an Implementation Detail
Item 42: Avoid Reckless Monkey—Patching
Chapter 5: Arrays and Dictionaries
Item 43: Build Lightweight Dictionaries from Direct Instances of Object
Item 44: Use null Prototypes to Prevent Prototype Pollution
Item 45: Use hasOwnProperty to Protect Against Prototype Pollution
Item 46: Prefer Arrays to Dictionaries for Ordered Collections
Item 47: Never Add Enumerable Properties to Object.prototype
Item 48: Avoid Modifying an Object during Enumeration
Item 49: Prefer for Loops to for...in Loops for Array Iteration
Item 50: Prefer Iteration Methods to Loops
Item 51: Reuse Generic Array Methods on Array—Like Objects
Item 52: Prefer Array Literals to the Array Constructor
Chapter 6: Library and API Design
Item 53: Maintain Consistent Conventions
Item 54: Treat undefined As "No Value"
Item 55: Accept Options Objects for Keyword Arguments
Item 56: Avoid Unnecessary State
Item 57: Use Structural Typing for Flexible Interfaces
Item 58: Distinguish between Array and Array—Like
Item 59: Avoid Excessive Coercion
Item 60: Support Method Chaining
Chapter 7: Concurrency
Item 61: Don't Block the Event Queue on I/O
Item 62: Use Nested or Named Callbacks for Asynchronous Sequencing
Item 63: Be Aware of Dropped Errors
Item 64: Use Recursion for Asynchronous Loops
Item 65: Don't Block the Event Queue on Computation
Item 66: Use a Counter to Perform Concurrent Operations
Item 67: Never Call Asynchronous Callbacks Synchronously
Item 68: Use Promises for Cleaner Asynchronous Logic
Index
Index
· · · · · · (收起)

讀後感

評分

評分

評分

評分

評分

用戶評價

评分

评分

评分

评分

评分

本站所有內容均為互聯網搜索引擎提供的公開搜索信息,本站不存儲任何數據與內容,任何內容與數據均與本站無關,如有需要請聯繫相關搜索引擎包括但不限於百度google,bing,sogou

© 2025 book.quotespace.org All Rights Reserved. 小美書屋 版权所有