Skip to content

Commit

Permalink
adding new formats
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed Apr 3, 2012
1 parent 47e688f commit 6c774aa
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 6 deletions.
Binary file added .DS_Store
Binary file not shown.
8 changes: 3 additions & 5 deletions README.md
Expand Up @@ -4,16 +4,14 @@
This is the repo for an in-progress creative-commons book I've written called 'Essential JavaScript Design Patterns'. Design patterns are reusable solutions to commonly occurring problems in software development and are a very useful tool to have at your disposal. You can read the latest version [online](http://addyosmani.com/resources/essentialjsdesignpatterns/book/ "Read Online") at
any time.

Version 1.5 of the book is currently over 100 A4 pages in length and 1.0 was downloaded approximately 260,000 times (rounded) during 2011. I've temporarily removed additional formats of the book while I wrap up 1.5.1 and consider moving it to a more automated process of conversion, but they'll be back soon!.
Version 1.5.1 of the book is currently over 160 A4 pages in length and 1.0 was downloaded approximately 260,000 times (rounded) during 2011. Additional formats of the book are available in the 'formats' directory.

#### Why is this book needed?

I wanted to write this book as I felt that patterns were an area a lot of new and
intermediate JavaScript developers may not have had a chance to explore just yet and I'm hopeful my book will encourage you to check them out as they can be quite powerful.
I wanted to write this book as I felt that patterns were an area a lot of new and intermediate JavaScript developers may not have had a chance to explore just yet and I'm hopeful my book will encourage you to check them out as they can be quite powerful.

#### Reporting Issues or content requests

For any issues related to EJDP, please feel free to open up an issue through the repo. I'll be
regularly checking the blog comments and making weekly updates as time allows but trackable issues through github are preferred.
For any issues related to EJDP, please feel free to open up an issue through the repo. I'll be regularly checking the blog comments and making weekly updates as time allows but trackable issues through github are preferred.

Thanks for reading and I hope this comes in useful.
Binary file added book/.DS_Store
Binary file not shown.
Binary file added book/img/ns1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion book/index.html
Expand Up @@ -2978,7 +2978,7 @@ <h3>Automating nested namespacing</h3>

</pre>
<p>Web inspector output:</p>
<p><img border="0" src="http://addyosmani.com/blog/wp-content/uploads/2011/09/ns1.png" width="520" /></p>
<p><img border="0" src="img/ns1.png" width="520" /></p>
<p>Note how where one would previously have had to explicitly declare the various nests for their namespace as objects, this can now be easily achieved using a single, cleaner line of code. This works exceedingly well when defining purely namespaces alone, but can seem a little less flexible when you want to define both functions and properties at the same time as declaring your namespaces. Regardless, it is still incredibly powerful and I regularly use a similar approach in some of my projects.</p>
<h3>Dependency declaration pattern</h3>
<p>In this section we&#39;re going to take a look at a minor augmentation to the nested namespacing pattern you may be used to seeing in some applications. We all know that local references to objects can decrease overall lookup times, but let&#39;s apply this to namespacing to see how it might look in practice:</p>
Expand Down
4 changes: 4 additions & 0 deletions book/metadata.xml
@@ -0,0 +1,4 @@
<dc:title>Essential JavaScript Design Patterns</dc:title>
<dc:creator>Addy Osmani</dc:creator>
<dc:rights>Creative Commons Attribution Non-Commercial Share Alike 3.0</dc:rights>
<dc:language>en-US</dc:language>
Binary file modified cover/cover.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added formats/essential-js-dp.epub
Binary file not shown.
Binary file added formats/essential-js-dp.pdf
Binary file not shown.

0 comments on commit 6c774aa

Please sign in to comment.