Skip to content

Commit 19223df

Browse files
author
github-actions
committed
Auto-deploy from Pattern Pigeon: 70edffa4a71c9ae78518e1c6c02493fd30ed81f9 thatrobotdev/Pattern-Pigeon-website@70edffa
1 parent b43e517 commit 19223df

File tree

3 files changed

+100
-14
lines changed

3 files changed

+100
-14
lines changed

content/projects/pattern-pigeon/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<!-- End Jekyll SEO tag -->
2323

2424

25-
<link rel="stylesheet" href="/projects/pattern-pigeon/assets/css/style.css?v=b71055dfd087744c7e261953d15d271d942d4c80">
25+
<link rel="stylesheet" href="/projects/pattern-pigeon/assets/css/style.css?v=70edffa4a71c9ae78518e1c6c02493fd30ed81f9">
2626
<script src="/projects/pattern-pigeon/assets/js/scale.fix.js"></script>
2727
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
2828

content/projects/pattern-pigeon/index.html

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<!-- End Jekyll SEO tag -->
2323

2424

25-
<link rel="stylesheet" href="/projects/pattern-pigeon/assets/css/style.css?v=b71055dfd087744c7e261953d15d271d942d4c80">
25+
<link rel="stylesheet" href="/projects/pattern-pigeon/assets/css/style.css?v=70edffa4a71c9ae78518e1c6c02493fd30ed81f9">
2626
<script src="/projects/pattern-pigeon/assets/js/scale.fix.js"></script>
2727
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
2828

@@ -71,6 +71,7 @@ <h1 id="coo-coo-salutations">Coo coo! (Salutations!)</h1>
7171
</li>
7272
</ul>
7373
</li>
74+
<li><a href="#sample-conversation" id="markdown-toc-sample-conversation">Sample Conversation</a></li>
7475
<li><a href="#for-developers" id="markdown-toc-for-developers">For developers</a> <ul>
7576
<li><a href="#source-code" id="markdown-toc-source-code">Source code</a></li>
7677
<li><a href="#contributing" id="markdown-toc-contributing">Contributing</a></li>
@@ -140,6 +141,57 @@ <h4 id="what-disadvantages-are-there-with-the-observer-pattern">What disadvantag
140141

141142
<p>With many observers, there could be performance implications of notifying all of them if the operation is costly or takes a long time. Also, the pattern relies on the reliability and format of the notification from the subject, so any updates to the publisher requires updates to the observers.</p>
142143

144+
<h2 id="sample-conversation">Sample Conversation</h2>
145+
<p>Below is a sample conversation that demonstrates how the bot interacts.</p>
146+
147+
<details>
148+
<summary>Expand conversation</summary>
149+
<div>
150+
<p>Hi!</p>
151+
<blockquote>
152+
<p>🐦 Hey there! I’m Pattern Pigeon. I’ll help you learn about common software design patterns like Strategy, Composite, and Observer—step by step. I might also chirp in with some pigeon trivia. What would you like to start with?</p>
153+
</blockquote>
154+
155+
<p>Can I learn about the Observer pattern?</p>
156+
157+
<blockquote>
158+
<p>Coo coo! Observer it is! What would you like to learn about?</p>
159+
</blockquote>
160+
161+
<p>What do you know?</p>
162+
163+
<blockquote>
164+
<p>About the observer pattern, why not ask for some good examples? I can answer the difference between the Publisher/Subject and the Observer, why use the Observer pattern, and any disadvantages!</p>
165+
</blockquote>
166+
167+
<p>First, what is the observer pattern?</p>
168+
169+
<blockquote>
170+
<p>Alright, here’s the deal, coo-coo! The Observer Pattern is a behavioral design pattern that establishes a structured subscription mechanism, wherein a ‘Publisher’ (or ‘Subject’) is capable of notifying multiple ‘Observers’ about specific events or changes in state as they occur. Just like that, when the crumbs hit the ground, everybirdy’s in the loop, ya feel me?</p>
171+
</blockquote>
172+
173+
<p>Okay, let’s do something else</p>
174+
175+
<blockquote>
176+
<p>Enough Observer for now, back to the coop! What to dive into next, Composite, Observer, or Strategy?</p>
177+
</blockquote>
178+
179+
<p>Before we continue on the next topic, could you tell me a fun fact about pigeons?</p>
180+
181+
<blockquote>
182+
<p>Oooh, ooh, ooh! Here’s a good one. Did you know that pigeons were “probably one of the first animals to be domesticated by humans?” According to Atlas Obscura, images and carvings of the pigeons first appear in the Middle East and North Africa around 3,000 years ago (https://www.atlasobscura.com/articles/ancient-egypt-pigeon-problem). Want to hear another?</p>
183+
</blockquote>
184+
185+
<p>Nah.</p>
186+
187+
<blockquote>
188+
<p>Enough facts for one day, I get it. Let’s fly back to the coop! What to dive into next, Composite, Observer, or Strategy?</p>
189+
</blockquote>
190+
191+
<p>[End]</p>
192+
</div>
193+
</details>
194+
143195
<h2 id="for-developers">For developers</h2>
144196

145197
<h3 id="source-code">Source code</h3>
@@ -184,8 +236,8 @@ <h2 id="license">License</h2>
184236
<script src="https://www.gstatic.com/dialogflow-console/fast/df-messenger/prod/v1/df-messenger.js"></script>
185237

186238
<df-messenger project-id="pattern-pidgeon" agent-id="fa2eb7a0-2d7f-49aa-8232-6944236d702d" language-code="en" max-query-length="-1">
187-
<df-messenger-chat chat-title="Pattern Pigeon">
188-
</df-messenger-chat>
239+
<df-messenger-chat-bubble chat-title="Pattern Pigeon">
240+
</df-messenger-chat-bubble>
189241
</df-messenger>
190242
<style>
191243
df-messenger {
@@ -196,10 +248,8 @@ <h2 id="license">License</h2>
196248
--df-messenger-chat-background: #4285F4;
197249
--df-messenger-message-user-background: #d3e3fd;
198250
--df-messenger-message-bot-background: #fff;
199-
bottom: 0;
200-
right: 0;
201-
top: 0;
202-
width: 350px;
251+
bottom: 16px;
252+
right: 16px;
203253
}
204254
</style>
205255

content/projects/pattern-pigeon/index.md

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,44 @@ There are many advantages. The subject and the observer do not require tight cou
6767

6868
With many observers, there could be performance implications of notifying all of them if the operation is costly or takes a long time. Also, the pattern relies on the reliability and format of the notification from the subject, so any updates to the publisher requires updates to the observers.
6969

70+
## Sample Conversation
71+
Below is a sample conversation that demonstrates how the bot interacts.
72+
73+
<details>
74+
<summary>Expand conversation</summary>
75+
<div markdown="1">
76+
Hi!
77+
> 🐦 Hey there! I’m Pattern Pigeon. I’ll help you learn about common software design patterns like Strategy, Composite, and Observer—step by step. I might also chirp in with some pigeon trivia. What would you like to start with?
78+
79+
Can I learn about the Observer pattern?
80+
81+
> Coo coo! Observer it is! What would you like to learn about?
82+
83+
What do you know?
84+
85+
> About the observer pattern, why not ask for some good examples? I can answer the difference between the Publisher/Subject and the Observer, why use the Observer pattern, and any disadvantages!
86+
87+
First, what is the observer pattern?
88+
89+
> Alright, here’s the deal, coo-coo! The Observer Pattern is a behavioral design pattern that establishes a structured subscription mechanism, wherein a ‘Publisher’ (or ‘Subject’) is capable of notifying multiple ‘Observers’ about specific events or changes in state as they occur. Just like that, when the crumbs hit the ground, everybirdy’s in the loop, ya feel me?
90+
91+
Okay, let's do something else
92+
93+
> Enough Observer for now, back to the coop! What to dive into next, Composite, Observer, or Strategy?
94+
95+
Before we continue on the next topic, could you tell me a fun fact about pigeons?
96+
97+
> Oooh, ooh, ooh! Here's a good one. Did you know that pigeons were "probably one of the first animals to be domesticated by humans?" According to Atlas Obscura, images and carvings of the pigeons first appear in the Middle East and North Africa around 3,000 years ago (https://www.atlasobscura.com/articles/ancient-egypt-pigeon-problem). Want to hear another?
98+
99+
Nah.
100+
101+
> Enough facts for one day, I get it. Let's fly back to the coop! What to dive into next, Composite, Observer, or Strategy?
102+
103+
[End]
104+
</div>
105+
</details>
106+
107+
70108
## For developers
71109

72110
### Source code
@@ -110,9 +148,9 @@ This project is licensed under the [Apache License, Version 2.0](https://www.apa
110148
agent-id="fa2eb7a0-2d7f-49aa-8232-6944236d702d"
111149
language-code="en"
112150
max-query-length="-1">
113-
<df-messenger-chat
151+
<df-messenger-chat-bubble
114152
chat-title="Pattern Pigeon">
115-
</df-messenger-chat>
153+
</df-messenger-chat-bubble>
116154
</df-messenger>
117155
<style>
118156
df-messenger {
@@ -123,10 +161,8 @@ This project is licensed under the [Apache License, Version 2.0](https://www.apa
123161
--df-messenger-chat-background: #4285F4;
124162
--df-messenger-message-user-background: #d3e3fd;
125163
--df-messenger-message-bot-background: #fff;
126-
bottom: 0;
127-
right: 0;
128-
top: 0;
129-
width: 350px;
164+
bottom: 16px;
165+
right: 16px;
130166
}
131167
</style>
132168
<!-- END Dialogflow Messenger Embed -->

0 commit comments

Comments
 (0)