Skip to content

Commit 755af2b

Browse files
author
Oktawian Chojnacki
committed
Xcode 6.3 beta and Swift 1.2 update + generate.
1 parent efabcae commit 755af2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+522
-523
lines changed

Design-Patterns.playground.zip

209 Bytes
Binary file not shown.

Design-Patterns.playground/Documentation/section-45.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
<body>
1212
<div class="content-wrapper">
1313
<section class="section">
14-
<p>Shorter but oh-so-ugly alternative:</p>
14+
<h2 id="-factory-method">🏭 Factory Method</h2>
15+
<p>The factory pattern is used to replace class constructors, abstracting the process of object generation so that the type of the object instantiated can be determined at run-time.</p>
16+
<p><strong>Example:</strong></p>
1517

1618
</section>
1719
</div>

Design-Patterns.playground/Documentation/section-47.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
<body>
1212
<div class="content-wrapper">
1313
<section class="section">
14-
<h2 id="-factory-method">🏭 Factory Method</h2>
15-
<p>The factory pattern is used to replace class constructors, abstracting the process of object generation so that the type of the object instantiated can be determined at run-time.</p>
16-
<p><strong>Example:</strong></p>
14+
<p><strong>Usage:</strong></p>
1715

1816
</section>
1917
</div>

Design-Patterns.playground/Documentation/section-49.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
<body>
1212
<div class="content-wrapper">
1313
<section class="section">
14-
<p><strong>Usage:</strong></p>
14+
<h2 id="-prototype">🃏 Prototype</h2>
15+
<p>The prototype pattern is used to instantiate a new object by copying all of the properties of an existing object, creating an independent clone.
16+
This practise is particularly useful when the construction of a new object is inefficient.</p>
17+
<p><strong>Example:</strong></p>
1518

1619
</section>
1720
</div>

Design-Patterns.playground/Documentation/section-51.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
<body>
1212
<div class="content-wrapper">
1313
<section class="section">
14-
<h2 id="-prototype">🃏 Prototype</h2>
15-
<p>The prototype pattern is used to instantiate a new object by copying all of the properties of an existing object, creating an independent clone.
16-
This practise is particularly useful when the construction of a new object is inefficient.</p>
17-
<p><strong>Example:</strong></p>
14+
<p><strong>Usage:</strong></p>
1815

1916
</section>
2017
</div>

Design-Patterns.playground/Documentation/section-53.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
<body>
1212
<div class="content-wrapper">
1313
<section class="section">
14-
<p><strong>Usage:</strong></p>
14+
<h2 id="-singleton">💍 Singleton</h2>
15+
<p>The singleton pattern ensures that only one object of a particular class is ever created.
16+
All further references to objects of the singleton class refer to the same underlying instance.</p>
17+
<p><strong>Example:</strong></p>
1518

1619
</section>
1720
</div>

Design-Patterns.playground/Documentation/section-55.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
<body>
1212
<div class="content-wrapper">
1313
<section class="section">
14-
<h2 id="-singleton">💍 Singleton</h2>
15-
<p>The singleton pattern ensures that only one object of a particular class is ever created.
16-
All further references to objects of the singleton class refer to the same underlying instance.</p>
17-
<p><strong>Example:</strong></p>
14+
<p><strong>Usage:</strong></p>
1815

1916
</section>
2017
</div>

Design-Patterns.playground/Documentation/section-57.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@
1111
<body>
1212
<div class="content-wrapper">
1313
<section class="section">
14-
<p><strong>Usage:</strong></p>
14+
<h1 id="structural">Structural</h1>
15+
<blockquote>
16+
<p>In software engineering, structural design patterns are design patterns that ease the design by identifying a simple way to realize relationships between entities.</p>
17+
<p><strong>Source:</strong> <a href="http://en.wikipedia.org/wiki/Structural_pattern">wikipedia.org</a></p>
18+
</blockquote>
19+
<h2 id="-adapter">🔌 Adapter</h2>
20+
<p>The adapter pattern is used to provide a link between two otherwise incompatible types by wrapping the &quot;adaptee&quot; with a class that supports the interface required by the client.</p>
21+
<p><strong>Example:</strong></p>
1522

1623
</section>
1724
</div>

Design-Patterns.playground/Documentation/section-59.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,7 @@
1111
<body>
1212
<div class="content-wrapper">
1313
<section class="section">
14-
<h1 id="structural">Structural</h1>
15-
<blockquote>
16-
<p>In software engineering, structural design patterns are design patterns that ease the design by identifying a simple way to realize relationships between entities.</p>
17-
<p><strong>Source:</strong> <a href="http://en.wikipedia.org/wiki/Structural_pattern">wikipedia.org</a></p>
18-
</blockquote>
19-
<h2 id="-adapter">🔌 Adapter</h2>
20-
<p>The adapter pattern is used to provide a link between two otherwise incompatible types by wrapping the &quot;adaptee&quot; with a class that supports the interface required by the client.</p>
21-
<p><strong>Example:</strong></p>
14+
<p><strong>Usage:</strong></p>
2215

2316
</section>
2417
</div>

Design-Patterns.playground/Documentation/section-61.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
<body>
1212
<div class="content-wrapper">
1313
<section class="section">
14-
<p><strong>Usage:</strong></p>
14+
<h2 id="-bridge">🌉 Bridge</h2>
15+
<p>The bridge pattern is used to separate the abstract elements of a class from the implementation details, providing the means to replace the implementation details without modifying the abstraction.</p>
16+
<p><strong>Example:</strong></p>
1517

1618
</section>
1719
</div>

0 commit comments

Comments
 (0)