サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
今年の「#文学」
javascript.crockford.com
The Elements of JavaScript Style Part Two: Idioms Douglas Crockford The Department of Style 2005-09-21 There are idioms that we can use to make our intentions clearer and more concise. Consider this function: function gw(f) { if (d.w.sv.checked == true) { zv = 'on'; } else { zv = 'off'; } procframe.location.replace("http://b.www.yahoo.com/module/wtr_tr.php?p=" + escape(f.p.value) + "&sv=" + zv); r
Douglas Crockford 2007-08-05 Demonstration This is the companion file to my paper on Vaughan Pratt's Top Down Operator Precedence. The paper presents a parser for Simplified JavaScript that is written in Simplified Javascript. It is chapter 9 of Beautiful Code. This page loads that parser and runs the parser on itself. This page loads two JavaScript files:
Douglas Crockford 2007-02-21 This is chapter 9 of Beautiful Code. Introduction Vaughan Pratt presented "Top Down Operator Precedence" at the first annual Principles of Programming Languages Symposium in Boston in 1973. In the paper Pratt described a parsing technique that combines the best properties of Recursive Descent and Floyd's Operator Precedence. It is easy to use. It feels a lot like Recur
The Elements of JavaScript Style Part One Douglas Crockford The Department of Style 2005-09-19 Programming is difficult. At its core, it is about managing complexity. Computer programs are the most complex things that humans make. Quality is a illusive and elusive. Good architecture is necessary to give programs enough structure to be able to grow large without collapsing into a puddle of confusio
https://www.crockford.com/code.html
https://www.crockford.com/little.html
typeof [] produces 'object' instead of 'array'. That isn't totally wrong since arrays in JavaScript inherit from objects, but it isn't very useful. typeof null produces 'object' instead of 'null'. That is totally wrong. We can correct this by defining our own typeOf function, which we can use in place of the defective typeof operator. isEmpty(v) isEmpty(v) returns true if v is an object containing
But first, why do we care about inheritance at all? There are primarily two reasons. The first is type convenience. We want the language system to automatically cast references of similar classes. Little type-safety is obtained from a type system which requires the routine explicit casting of object references. This is of critical importance in strongly-typed languages, but it is irrelevant in loo
Private Members in JavaScript Douglas Crockford www.crockford.com JavaScript is the world's most misunderstood programming language. Some believe that it lacks the property of information hiding because objects cannot have private instance variables and methods. But this is a misunderstanding. JavaScript objects can have private members. Here's how. Objects JavaScript is fundamentally about object
Prototypal Inheritance in JavaScript Douglas Crockford www.crockford.com Five years ago I wrote Classical Inheritance in JavaScript (Chinese Italian Japanese). It showed that JavaScript is a class-free, prototypal language, and that it has sufficient expressive power to simulate a classical system. My programming style has evolved since then, as any good programmer's should. I have learned to full
JavaScript: The World's Most Misunderstood Programming Language Douglas Crockford www.crockford.com JavaScript, aka Mocha, aka LiveScript, aka JScript, aka ECMAScript, is one of the world's most popular programming languages. Virtually every personal computer in the world has at least one JavaScript interpreter installed on it and in active use. JavaScript's popularity is due entirely to its role
JavaScript Actual JavaScript Engine Performance JavaScript: The Wrrrld's Most Misunderstood Programming Language The World's Most Misunderstood Programming Language Has Become the World's Most Popular Programming Language A Survey of the JavaScript Programming Language Code Conventions for the JavaScript Programming Language The Little JavaScripter Private Members in JavaScript Prototypal Inherita
このページを最初にブックマークしてみませんか?
『Douglas Crockford's JavaScript』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く