- Effective JavaScript : 68 Specific Ways to Harness the Power of JavaScript
- Effective JavaScript : 68 Specific Ways to Harness the Power of JavaScript
- Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript
- Book description
- Table of contents
- Product information
- You might also like
- Check it out now on O’Reilly
- Дэвид Херман: Сила JavaScript. 68 способов эффективного использования JS
- Effective JavaScript. 68 specific ways to harness the power
- Аннотация к книге «Сила JavaScript. 68 способов эффективного использования JS»
Effective JavaScript : 68 Specific Ways to Harness the Power of JavaScript
“It’s uncommon to have a programming language wonk who can speak in such comfortable and friendly language as David does. His walk through the syntax and semantics of JavaScript is both charming and hugely insightful; reminders of gotchas complement realistic use cases, paced at a comfortable curve. You’ll find when you finish the book that you’ve gained a strong and comprehensive sense of mastery.”
—Paul Irish, developer advocate, Google Chrome
“This is not a book for those looking for shortcuts; rather it is hard-won experience distilled into a guided tour. It’s one of the few books on JS that I’ll recommend without hesitation.”
—Alex Russell, TC39 member, software engineer, Google
In order to truly master JavaScript, you need to learn how to work effectively with the language’s flexible, expressive features and how to avoid its pitfalls. No matter how long you’ve been writing JavaScript code, Effective JavaScript will help deepen your understanding of this powerful language, so you can build more predictable, reliable, and maintainable programs.
Author David Herman, with his years of experience on Ecma’s JavaScript standardization committee, illuminates the language’s inner workings as never before—helping you take full advantage of JavaScript’s expressiveness. Reflecting the latest versions of the JavaScript standard, the book offers well-proven techniques and best practices you’ll rely on for years to come.
Effective JavaScript is organized around 68 proven approaches for writing better JavaScript, backed by concrete examples. You’ll learn how to choose the right programming style for each project, manage unanticipated problems, and work more successfully with every facet of JavaScript programming from data structures to concurrency. Key features include
- Better ways to use prototype-based object-oriented programming
- Subtleties and solutions for working with arrays and dictionary objects
- Precise and practical explanations of JavaScript’s functions and variable scoping semantics
- Useful JavaScript programming patterns and idioms, such as options objects and method chaining
- In-depth guidance on using JavaScript’s unique “run-to-completion” approach to concurrency
Effective JavaScript : 68 Specific Ways to Harness the Power of JavaScript
«It’s uncommon to have a programming language wonk who can speak in such comfortable and friendly language as David does. His walk through the syntax and semantics of JavaScript is both charming and hugely insightful; reminders of gotchas complement realistic use cases, paced at a comfortable curve. You’ll find when you finish the book that you’ve gained a strong and comprehensive sense of mastery.»
—Paul Irish, developer advocate, Google Chrome
«This is not a book for those looking for shortcuts; rather it is hard-won experience distilled into a guided tour. It’s one of the few books on JS that I’ll recommend without hesitation.»
—Alex Russell, TC39 member, software engineer, Google
In order to truly master JavaScript, you need to learn how to work effectively with the language’s flexible, expressive features and how to avoid its pitfalls. No matter how long you’ve been writing JavaScript code, Effective JavaScript will help deepen your understanding of this powerful language, so you can build more predictable, reliable, and maintainable programs.
Author David Herman, with his years of experience on Ecma’s JavaScript standardization committee, illuminates the language’s inner workings as never before—helping you take full advantage of JavaScript’s expressiveness. Reflecting the latest versions of the JavaScript standard, the book offers well-proven techniques and best practices you’ll rely on for years to come.
Effective JavaScript is organized around 68 proven approaches for writing better JavaScript, backed by concrete examples. You’ll learn how to choose the right programming style for each project, manage unanticipated problems, and work more successfully with every facet of JavaScript programming from data structures to concurrency. Key features include
- Better ways to use prototype-based object-oriented programming
- Subtleties and solutions for working with arrays and dictionary objects
- Precise and practical explanations of JavaScript’s functions and variable scoping semantics
- Useful JavaScript programming patterns and idioms, such as options objects and method chaining
- In-depth guidance on using JavaScript’s unique «run-to-completion» approach to concurrency
Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript
Read it now on the O’Reilly learning platform with a 10-day free trial.
O’Reilly members get unlimited access to books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.
Book description
“It’s uncommon to have a programming language wonk who can speak in such comfortable and friendly language as David does. His walk through the syntax and semantics of JavaScript is both charming and hugely insightful; reminders of gotchas complement realistic use cases, paced at a comfortable curve. You’ll find when you finish the book that you’ve gained a strong and comprehensive sense of mastery.”
—Paul Irish, developer advocate, Google Chrome
“This is not a book for those looking for shortcuts; rather it is hard-won experience distilled into a guided tour. It’s one of the few books on JS that I’ll recommend without hesitation.”
—Alex Russell, TC39 member, software engineer, Google
In order to truly master JavaScript, you need to learn how to work effectively with the language’s flexible, expressive features and how to avoid its pitfalls. No matter how long you’ve been writing JavaScript code, Effective JavaScript will help deepen your understanding of this powerful language, so you can build more predictable, reliable, and maintainable programs.
Author David Herman, with his years of experience on Ecma’s JavaScript standardization committee, illuminates the language’s inner workings as never before—helping you take full advantage of JavaScript’s expressiveness. Reflecting the latest versions of the JavaScript standard, the book offers well-proven techniques and best practices you’ll rely on for years to come.
Effective JavaScript is organized around 68 proven approaches for writing better JavaScript, backed by concrete examples. You’ll learn how to choose the right programming style for each project, manage unanticipated problems, and work more successfully with every facet of JavaScript programming from data structures to concurrency. Key features include
Table of contents
- Title Page
- Copyright Page
- Praise for Effective JavaScript
- The Effective Software Development Series
- Dedication Page
- Contents
- Foreword
- Preface
- JavaScript versus ECMAScript
- On the Web
- A Note on Concurrency
- 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
- 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
- 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 toString Method of Functions
- Item 29: Avoid Nonstandard Stack Inspection Properties
- Item 30: Understand the Difference between prototype, getPrototypeOf, and __proto__
- Item 31: Prefer Object.getPrototypeOf 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
- 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
- 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
- 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
Product information
- Title: Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript
- Author(s): David Herman
- Release date: November 2012
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780132902281
You might also like
Check it out now on O’Reilly
Dive in for free with a 10-day trial of the O’Reilly learning platform—then explore all the other resources our members count on to build skills and solve problems every day.
Дэвид Херман: Сила JavaScript. 68 способов эффективного использования JS
Effective JavaScript. 68 specific ways to harness the power
Аннотация к книге «Сила JavaScript. 68 способов эффективного использования JS»
Эта книга поможет вам освоить всю мощь языка программирования JavaScript и научит применять его максимально эффективно. Автор описывает внутреннюю работу языка на понятных практических примерах, которые помогут как начинающим программистам, так и опытным разработчикам повысить уровень понимания JavaScript и существенно обогатить опыт его применения в своей работе. В книге содержится 68 проверенных подходов для написания «чистого» и работающего кода на JavaScript, которые можно легко использовать на практике. Вы узнаете, как выбирать правильный стиль программирования для каждого конкретного проекта, как управлять непредвиденными проблемами разработки, а также как работать более эффективно на каждом этапе программирования на JavaScript.
Иллюстрации к книге Дэвид Херман — Сила JavaScript. 68 способов эффективного использования JS
Вы можете стать одним из первых, кто оставил отзыв. Мы всегда рады честным, конструктивным рецензиям. Лабиринт приветствует дружелюбную дискуссию ценителей и не приветствует перепалки и оскорбления.