JavaScript:The Good

《JavaScript:The Good Parts(影印版)》一書中,Crockford深度分析了一堆好的意圖和盲目的錯誤,為你提供了所有JavaScript的地道優良部分的細節,包括:·語法·繼承·方法;·對象·數組·風格;·函式·正則表達式·美麗的特性大多數程式語言包含優良和拙劣的部件,但對JavaScript而言後者的比重較大,因為它在匆忙中開發和發布,還沒能夠得到精煉。這本權威的書剔除了大多數可怕的JavaScript特性,展現了JavaScript的另一部分,這一部分比JavaScript語言作為一個整體更加穩定、更具有可讀性以及可維護性——可以用這個部分創建真正可展的合高效的代碼。作者Douglas Crockford(他被很多開發社區認為是JavaScript專家)提出了足夠多的好想法,讓JavaScript成為一個傑出的面向對象程式語言。不幸的是,這些好想法(比如函式、弱類型、動態對象和表達能力很強的對象文字注釋)被摻雜了些壞想法(比如基於全局變數的編程模型)。當Java Applet隕落的時候,JavaScript成為了Web編程的預設語言,但它的流行程度跟它作為一個程式語言的質量完全沒有關係。

基本介紹

  • 書名:JavaScript:The Good
  • 類型:計算機與網際網路
  • 出版日期:2009年1月1日
  • 語種:英語
  • ISBN:9787564114473
  • 作者:克羅克福特
  • 出版社:東南大學出版社
  • 頁數:153頁
  • 開本:16
  • 品牌:南京東南大學出版社
基本介紹,內容簡介,作者簡介,圖書目錄,序言,

基本介紹

內容簡介

使用《JavaScript:The Good Parts(影印版)》一書,你會發現一個美麗、優雅、輕量級和具有很強表達能力的語言,讓你創造有效的代碼,無論你正在管理對象庫,還是只是試著讓Ajax快速運行。如果你為Web開發站點或者應用程式,那么這《JavaScript:The Good Parts(影印版)》是絕對必需的。

作者簡介

作者:(美國)克羅克福特

Douglas Crockford是雅虎的高級JavaScript架構師,他以發明和維護JSON(JavaSclrpt對象注釋)而聞名。他經常在JavaScript高級主題的會議上發言,也是EcMAScript委員會的成員。

圖書目錄

Preface
1. GoodParts
WhyJavaScript?
AnalyzingJavaScript
ASimpleTestingGround

2. Grammar
Whitespace
Names
Numbers
Strings
Statements
Expressions
Literals
Functions

3. Objects
ObjectLiterals
Retrieval
Update
Reference
Prototype
Reflection
Enumeration
Delete
GlobalAbatement

4. Functions
FunctionObjects
FunctionLiteral
Invocation
Arguments
Return
Exceptions
AugmentingTypes
Recursion
Scope
Closure
Callbacks
Module
Cascade
Curry
Memoization

5. Inheritance
Pseudoclassical
ObjectSpecifiers
Prototypal
Functional
Parts

6. Arrays
ArrayLiterals
Length
Delete
Enumeration
Confusion
Methods
Dimensions

7. RegularExpressions
AnExample
Construction
Elements
8. Methods
9. Style
10. BeautifulFeatures
AppendixA. AwfulParts
AppendixB. BadParts
AppendixC. JSLint
AppendixD. SyntaxDiagrams
AppendixE. JSON
Index

序言

This is a book about the JavaScript programming language. It is intended for pro-grammers who, by happenstance or curiosity, are venturing into JavaScript for the firsttime. It is also intended for programmers who have been working with JavaScript at anovice level and are now ready for a more sophisticated relationship with the lan-guage. JavaScript is a surprisingly powerful language. Its unconventionality presentssome challenges, but being a small language, it is easily mastered.My goal here is to help you to learn to think in JavaScript. I will show you the com-ponents of the language and start you on the process of discovering the ways thosecomponents can be put together. This is not a reference book. It is not exhaustiveabout the language and its quirks. It doesn't contain everything you'll ever need toknow. That stuff you can easily find online. Instead, this book just contains thethings that are really important.This is not a book for beginners. Someday I hope to write a JavaScript: The FirstParts book, but this is not that book. This is not a book about Ajax or web program-ming. The focus is exclusively on JavaScript, which is just one of the languages theweb developer must master.This is not a book for dummies. This book is small, but it is dense. There is a lot ofmaterial packed into it. Don't be discouraged if it takes multiple readings to get it.Your efforts will be rewarded.

相關詞條

熱門詞條

聯絡我們