Benx Shen's Library tagged → View Popular
JavaScript: The World's Most Misunderstood Programming Language
-
Why is this language so misunderstood?
-
Is JavaScript object-oriented? It has objects which can contain
data and methods that act upon that data. Objects can contain other
objects. It does not have classes, but it does have constructors
which do what classes do, including acting as containers for class
variables and methods. It does not have class-oriented inheritance,
but it does have prototype-oriented inheritance.
A re-introduction to JavaScript - MDC
-
It's useful to start with an idea of the language's history. JavaScript was created in 1995 by Brendan Eich, an engineer at Netscape, and first released with Netscape 2 early in 1996. It was originally going to be called LiveScript, but was renamed in an ill-fated marketing decision to try to capitalise on the popularity of Sun Microsystem's Java language — despite the two having very little in common. This has been a source of confusion ever since.
-
var name = o && o.getName();
- 10 more annotations...
Understanding JavaScript's this keyword - Trephine
-
var unboundGreet = Bob.greet;
unboundGreet();What do we expect
unboundGreet()to produce? The answer is"Hi, my name is ". The reason is thatthisis set to thewindowglobal when an unbound function is called
JavaScript call and apply - Trephine
針對 call/apply function 相當清楚的介紹!
基本上,應該說是可以重新檢視 javascript 的物件特性。對於基礎的理解相當有幫助!!!
{|ihower.idv.tw| blog } | 實戰敏捷開發 Practices of an Agile Developer (1) 專業態度篇
-
- 個人及互動勝於流程與工具
- 可用的軟體勝於詳盡的文件
- 與客戶合作勝於合約談判
- 回應變化勝於墨守計畫
敏捷軟體開發一直是和多內部開發的核心概念,強調個人、合作、回應和使用工作軟體(wiki, version control, unit testing, build automaion),2001年由一群軟體開發者發表宣言如下:
Javascript Closures
/* Assign the constructor's parameter to a property of the object:- */
-
- Closure
- A "closure" is an expression (typically a function) that
can have free variables together with an environment that binds
those variables (that "closes" the expression). -
Example 2: Associating Functions with Object Instance Methods
Classical Inheritance in JavaScript
JavaScript is a class-free, object-oriented language, and as such, it uses prototypal inheritance instead of classical inheritance. This can be puzzling to programmers trained in conventional object-oriented languages like C++ and Java. JavaScript's prototypal inheritance has more expressive power than classical inheritance, as we will see presently.
Selected Tags
Related Tags
Sponsored Links
Groups interested in *精華*
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo
