首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 图书频道 > 计算机与网络 > 程序设计 >

JaveScript:The Good Parts(影印版)

2011-07-03 
商家名称 信用等级 购买信息 订购本书
JaveScript:The Good Parts(影印版) 去商家看看
JaveScript:The Good Parts(影印版) 去商家看看

 JaveScript:The Good Parts(影印版)


基本信息·出版社:东南大学出版社
·页码:153 页
·出版日期:2009年01月
·ISBN:9787564114473
·条形码:9787564114473
·版本:第1版
·装帧:平装
·开本:16
·正文语种:英语

内容简介 大多数编程语言包含优良和拙劣的部件,但对JavaScript而言后者的比重较大,因为它在匆忙中开发和发布,还没能够得到精炼。这本权威的书剔除了大多数可怕的JavaScript特性,展现了JavaScript的另一部分,这一部分比JavaScript语言作为一个整体更加稳定、更具有可读性以及可维护性——可以用这个部分创建真正可展的合高效的代码。
作者Douglas Crockford(他被很多开发社区认为是JavaScript专家)提出了足够多的好想法,让JavaScript成为一个杰出的面向对象编程语言。不幸的是,这些好想法(比如函数、弱类型、动态对象和表达能力很强的对象文字注释)被掺杂了些坏想法(比如基于全局变量的编程模型)。
当Java Applet陨落的时候,JavaScript成为了Web编程的缺省语言,但它的流行程度跟它作为一个编程语言的质量完全没有关系。在《JavaScript:The Good Parts》一书中,Crockford深度分析了一堆好的意图和盲目的错误,为你提供了所有JavaScript的地道优良部分的细节,包括:
·语法·继承·方法
·对象·数组·风格
·函数·正则表达式·美丽的特性
使用《JavaScript:The Good Parts》一书,你会发现一个美丽、优雅、轻量级和具有很强表达能力的语言,让你创造有效的代码,无论你正在管理对象库,还是只是试着让Ajax快速运行。如果你为Web开发站点或者应用程序,那么这本书是绝对必需的。
作者简介 Douglas Crockford是雅虎的高级JavaScript架构师,他以发明和维护JSON(JavaSclrpt对象注释)而闻名。他经常在JavaScript高级主题的会议上发言,也是EcMAScript委员会的成员。
目录
Preface
1. Good Parts
Why JavaScript?
Analyzing JavaScript
A Simple Testing Ground

2. Grammar
Whitespace
Names
Numbers
Strings
Statements
Expressions
Literals
Functions

3. Objects
Object Literals
Retrieval
Update
Reference
Prototype
Reflection
Enumeration
Delete
Global Abatement

4. Functions
Function Objects
Function Literal
Invocation
Arguments
Return
Exceptions
Augmenting Types
Recursion
Scope
Closure
Callbacks
Module
Cascade
Curry
Memoization

5. Inheritance
Pseudoclassical
Object Specifiers
Prototypal
Functional
Parts

6. Arrays
Array Literals
Length
Delete
Enumeration
Confusion
Methods
Dimensions

7. Regular Expressions
An Example
Construction
Elements

8. Methods
9. Style
10. Beautiful Features
Appendix A. Awful Parts
Appendix B. Bad Parts
Appendix C. JSLint
Appendix D. Syntax Diagrams
Appendix E. 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.
文摘 I know it well:
   I read it in the grammar long ago.——William Shakespeare, The Tragedy of Titus AndronicusThis chapter introduces the grammar of the good parts of JavaScript, presenting aquick overview of how the language is structured. We will represent the grammarwith railroad diagrams.The rules for interpreting these diagrams are simple:You start on the left edge and follow the tracks to the right edge.As you go, you will encounter literals in ovals, and rules or descriptions in
   rectangles.Any sequence that can be made by following the tracks is legal.Any sequence that cannot be made by following the tracks is not legalRailroad diagrams with one bar at each end allow whitespace to be inserted
   between any pair of tokens. Railroad diagrams with two bars at each end do not.The grammar of the good parts presented in this chapter is significantly simpler thanthe grammar of the whole language.WhitespaceWhitespace can take the form of formatting characters or comments. Whitespace isusually insignificant, but it is occasionally necessary to use whitespace to separatesequences of characters that would otherwise be combined into a single token. Forexample, in:
  vat that = this;the space between vat and that cannot be removed but the other spaces can beremoved.
插图:

热点排行