 |
 User: Login | Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications. News and Articles about Designing and Developing wiht Yahoo! Libraries. |
| Address URL | http://yuiblog.com/blog Registered: 26-Apr-2008 |
| Ads: | |
Send to email | Free Chapter from Douglas Crockford?s ?JavaScript: The Good Parts? in Development | By Eric Miraglia el 05-May-2008 |
Click through to read Ch. 5 of Douglas's forthcoming book.: Paste this image in your site, Myspace, Facebook, Ebay copy this code...
The #2 book on Amazon’s JavaScript shelf this morning is Douglas Crockford’s forthcoming Javascript: The Good Parts (currently available for preorder and due for release later this month). In this volume, Douglas articulates a philosophy of coding in JavaScript that builds up on and extends the content of his popular video series and articles. The premise, as Douglas puts it: "Most programming languages contain good parts and bad parts. I discovered that I could be a better programmer by using only the good parts and avoiding the bad parts."
Douglas and his editors at O’Reilly were kind enought to let us offer a sneak preview of JavaScript: The Good Parts here:
- Chapter 5: Inheritance — 1.2MB PDF
Here’s how Douglas opens the discussion of inheritance in JavaScript:
Inheritance is an important topic in most programming languages.
In the classical languages (such as Java), inheritance (or extends) provides two useful
services. First, it is a form of code reuse. If a new class is mostly similar to an existing
class, you only have to specify the differences. Patterns of code reuse are extremely
important because they have the potential to significantly reduce the cost of software
development. The other benefit of classical inheritance is that it includes the
specification of a system of types. This mostly frees the programmer from having to
write explicit casting operations, which is a very good thing because when casting,
the safety benefits of a type system are lost.
JavaScript, being a loosely typed language, never casts. The lineage of an object is
irrelevant. What matters about an object is what it can do, not what it is descended
from.
JavaScript provides a much richer set of code reuse patterns. It can ape the classical
pattern, but it also supports other patterns that are more expressive. The set of possible
inheritance patterns in JavaScript is vast. In this chapter, we’ll look at a few of the
most straightforward patterns. Much more complicated constructions are possible,
but it is usually best to keep it simple.
Click here to keep reading (1.2MB; PDF).
Thanks to Laurel Ackerman and Simon St. Laurent at O’Reilly for the permission to share the sample chapter.
Read 14 times

|
|
 |
 |
 | Yahoo User Interface Blog | Blogger | Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications. Yahoo! User Interface Blog News and Articles about Designing and Developing wiht Yahoo! Libraries. |
| Free Chapter from Douglas Crockford?s ?JavaScript: The Good Parts? | The #2 book on Amazon’s JavaScript shelf this morning is Douglas Crockford’s forthcoming Javascript: The Good Parts (currently available for preorder and due for release later this month). In this volume, Douglas articulates a philosophy of coding in JavaScript that builds up on and extends the content of his popular video series and articles. [...] [..] Read complete article |  | Published 05-May-2008 by Eric Miraglia in Development Read 14 times. More hits in  |
|
 | Yahoo User Interface Blog | Blogger | Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications. Yahoo! User Interface Blog News and Articles about Designing and Developing wiht Yahoo! Libraries. |
| YUI Theater: Douglas Crockford, ?Web Forward? | Douglas keynoted our 2008 Frontend Engineering Summit here at Yahoo last week. In this talk, "Web Forward," he proposes that the standards processes have stagnated, leaving us with an inadequate platform and no orderly mechanism for improving it. The solution, he suggests, is a disorderly mechanism: another browser war. In a new browser war, the [...] [..] Read complete article |  | Published 17-Oct-2008 by Eric Miraglia in YUI Theater Read 3 times. More hits in  |
|
 | Yahoo User Interface Blog | Blogger | Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications. Yahoo! User Interface Blog News and Articles about Designing and Developing wiht Yahoo! Libraries. |
 | Nerdblog | Blogger | Provides news about hardware, software, notebooks, laptops, PCs, Mac, PDAs Nerdblog.Net |
| JavaScript 2's new direction
(InfoWorld) | | InfoWorld - Standardization efforts for the next version of JavaScript have taken a sharp turn this month, with some key changes in the Web scripting technology's direction. JavaScript creator Brendan Eich, CTO of Mozilla, has helped forge a consensus on how to proceed with the direction for JavaScript's improvements. “JavaScript was sitting still. It was [...] [..] Read complete article |  | Published 26-Aug-2008 by Nerdblog in General Read 5 times. More hits in  |
|
 | Yahoo User Interface Blog | Blogger | Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications. Yahoo! User Interface Blog News and Articles about Designing and Developing wiht Yahoo! Libraries. |
| Getting Started with JavaScript Unit Testing and YUI Test | | For a long time, the web has been a wild west of technology. It’s only been within the past five years that any sort of rigor has been applied to web development and technologies such as HTML, CSS and JavaScript. JavaScript development has been the most affected, bringing discipline from other types of programming into [...] [..] Read complete article |  | Published 01-Dec-2008 by Nicholas C. Zakas in Development Read 1 times. More hits in  |
|
 | Problogger | Blogger | Blog tips to help you blogging ProBlogger Blog Tips Make Money Online |
| ProBlogger the Book - Sample Chapter Now Available | Last week when I announced the release of ProBlogger the Book I mentioned that we’d be making the first chapter (the Introduction and chapter 1) available as a sampler download.
It took us a few days longer than we anticipated to get it up but it’s now available.
To get it all you need to do is [...] [..] Read complete article |  | Published 17-Apr-2008 by Darren Rowse in ProBlogger Site News Read 4 times. More hits in  |
|
 | Yahoo User Interface Blog | Blogger | Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications. Yahoo! User Interface Blog News and Articles about Designing and Developing wiht Yahoo! Libraries. |
| Non-blocking JavaScript Downloads | About the Author: Stoyan Stefanov is a Yahoo! web developer working for the Exceptional Performance team and leading the development of the YSlow performance tool. He also an open-source contributor, conference speaker and technical writer: his latest book is called Object-Oriented JavaScript.
External JavaScript files block downloads and hurt your page performance, but there is an [...] [..] Read complete article |  | Published 22-Jul-2008 by Stoyan Stefanov in DevelopmentPerformance Read 7 times. More hits in  |
|
 | Kotaku`s The Gamers Guide | Blogger | XBOX 360 Gamers Weblog
Gossip, news and leaks for obsessive gamers Kotaku As if you don't waste enough of your time in a gamer's haze, here's Kotaku: a gamer's guide that goes beyond the press release. Gossip, cheats, criticism, design, nostalgia, pred |
| EMI Gets New Digital Boss From Google (GOOG) | | John Furrier got most of this one right: Google VP of Engineering Douglas Merrill is leaving Mountain View for...somewhere in California, where he'll be EMI Music's new president of digital. We assume that means Douglas is going to LA, wh [..] Read complete article |  | Published 01-Apr-2008 by Silicon in General Read 10 times. More hits in  |
|
 | Kotaku`s The Gamers Guide | Blogger | XBOX 360 Gamers Weblog
Gossip, news and leaks for obsessive gamers Kotaku As if you don't waste enough of your time in a gamer's haze, here's Kotaku: a gamer's guide that goes beyond the press release. Gossip, cheats, criticism, design, nostalgia, pred |
| Free Realms - The Best MMO At E3? [E308] | | I'm not sure if it is a good thing that the best MMO at E3 2008 could be a game aimed at 9-14 year-olds, but I am sure that Sony Online Entertainment's Free Realms is a very good thing indeed. There are plenty of free MMOs aimed at the kid market out there, but they all tend to share certai [..] Read complete article |  | Published 17-Jul-2008 by Mike Fahey in E308 Family free realms Impressions Original PC Soe Read 4 times. More hits in ![Images about Free Realms - The Best MMO At E3? [E308]](./images/photo.gif) |
|
 | Kotaku`s The Gamers Guide | Blogger | XBOX 360 Gamers Weblog
Gossip, news and leaks for obsessive gamers Kotaku As if you don't waste enough of your time in a gamer's haze, here's Kotaku: a gamer's guide that goes beyond the press release. Gossip, cheats, criticism, design, nostalgia, pred |
| E3 Gate Crasher: Ghetto Vader - Let Him In? [E308] | | Ghetto Vader here came all the way from The Bronx to crash E3 even though he doesn't have an invite. Should we let him in? Gawker Media polls require Javascript; if you're viewing this in an RSS reader, click through to view in your Javascript-enabled web browser. [..] Read complete article |  | Published 16-Jul-2008 by Noah R in e308 Cosplay E3 08 Gatecrasher Ghetto vader Project 420 Rap Read 6 times. More hits in ![Images about E3 Gate Crasher: Ghetto Vader - Let Him In? [E308]](./images/photo.gif) |
|
|
Warning We are not responsible of information posted from external feeds. Use this website at your own risk.
Notice: We will not be liable for any direct or indirect loss or damage arising under this disclaimer or in connection with our website, whether arising in tort, contract, or otherwise.
|
|
| |