This is the home of The Learn'd Developer: Design Patterns, a book that examines Design Patterns using a test-driven approach. It contains the book and its code samples. Design Patterns, is the first in the The Learn'd Developer Series—a series of books aimed at developers that want to hone their craft.
It is released under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.
We regenerate the book often. See the files named: the-learn-d-developer-design-patterns.xxx (where xxx is the file extension). Also, we try to keep an up to date version of the book here: The Learn'd Developer: Design Patterns
To generate the book in all formats simply type the following from the project's root directory:
make all
The Makefile itself is pretty descriptive and should get you going quickly.
The source code for the book is all in the ./resources directory. As the code uses TDD you will find the following useful for running the tests:
For any Java source code, the unit tests were done using JUnit4 in Eclpise. Also, any test doubles use Mockito.
For any PHP source code, the unit tests were done using phpunit.
For any JavaScript source code, the unit tests were done using mocha.js. Also, any test doubles use sinon.js.
Contributions are welcome. Please see both the book's Preface and, of course, any issues in the github issue tracker.
I feel obliged to commend Addy Osmani on his countless community contributions, particularly in developer education, and acknowledge that seeing the impact of his works inspired me to write myself. Also, the book: Essential JS Design Patterns is where I shamelessly lifted the slightly tweaked pandoc build process being used here!