 |
 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: ?Coding and Design Patterns? from Stoyan Stefanov?s Object-Oriented JavaScript in Development | By Eric Miraglia el 26-Sep-2008 |
Stoyan Stefanov's 'Object Oriented JavaScript' [book cover]: Paste this image in your site, Myspace, Facebook, Ebay copy this code...
Stoyan Stefanov is a member of Yahoo’s Exceptional Performance team; he’s worked on a variety of performance-related projects at Yahoo, including the popular YSlow plugin for Firebug. He’s also a contributing author here on YUIBlog.
Stoyan’s latest project is Object Oriented JavaScript, a new book from Packt whose simple goal is to help you learn how to “think in JavaScript.” Stoyan and his editors were kind enough to let us share with you Chapter 8 from OOJS — “Coding and Design Patterns.”
- Chapter 8 from Object Oriented JavaScript by Stoyan Stefanov: “Coding and Design Patterns” (1.8MB PDF)
Among the coding patterns explored in this chapter:
- Separating behavior
- Namespaces
- Init-time branching
- Lazy de?nition
- Con?guration objects
- Private variables and methods
- Privileged methods
- Private functions as public methods
- Self-executable functions
- Chaining
- JSON
Design patterns include:
- Singleton
- Factory
- Decorator
- Observer
The sample chapter is an excellent standalone resource, but the full volume is outstanding as well. Our thanks to Stoyan and his editors for allowing us to freely share the coding and design patterns content here.
Tags: stoyan stefanov, javascript, design patterns, packt, object-oriented javascript
Read 7 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. |
 | 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  |
|
 | 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. |
| Image Optimization Part 1: The Importance of Images | | 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.
This is the first in a series of posts about image optimization. In this [...] [..] Read complete article |  | Published 29-Oct-2008 by Stoyan Stefanov in DevelopmentPerformance 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. |
| Image Optimization Part 2: Selecting the Right File Format | 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.
This is part 2 in an ongoing series. You can read the other parts [...] [..] Read complete article |  | Published 04-Nov-2008 by Stoyan Stefanov in DesignDevelopmentPerformance 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. |
| Image Optimization, Part 3: Four Steps to File Size Reduction | | 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.
This is part 3 in an ongoing series. You can read the other parts [...] [..] Read complete article |  | Published 14-Nov-2008 by Stoyan Stefanov in DevelopmentPerformance Read 2 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. |
| 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. |
| Patterns for Designing a Reputation System | | Recently, we released a family of related Reputation patterns to the Yahoo Design Pattern Library, the first of several collections of social-design related patterns that we’re working on. These patterns are somewhat different from the typical UI or rich-interaction type of pattern. They don’t tell you how to lay out a page or where to [...] [..] Read complete article |  | Published 10-Jun-2008 by Christian Crumlish in Designdesign patternspatternpattern libraryreputationsocialsocial designsocial design patterns Read 6 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. |
| Global Domination, Part Two | | As I continue the practice of the craft of programming, I am always examining
my practices. Can I improve the patterns that I use so that I can make my
programs clearer, stronger, better? This is particularly important when working
with a language like JavaScript which has a bias that favors patterns that are
confusing, weak, and worse.
One of [...] [..] Read complete article |  | Published 16-Apr-2008 by Douglas Crockford in Developmentjavascript Read 7 times. More hits in  |
|
 | 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  |
|
 | Nerdblog | Blogger | Provides news about hardware, software, notebooks, laptops, PCs, Mac, PDAs Nerdblog.Net |
| Build Your Own Mid-Century Modern Birdhouse | Curbly has a nice video how-to on building a modern inspired birdhouse. The final product looks a lot nicer than most versions found in the local hardware store. Hopefully your local birds will appreciate the design.
Anyone interested in design and architecture can appreciate the brilliant combination of modern materials and contemporary lifestyle patterns inhabitated in [...] [..] Read complete article |  | Published 26-Aug-2008 by Nerdblog in General Read 3 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  |
|
|
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.
|
|
| |