• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiond51d8c0c3152560161150e420dfa3a31c79a8e40 (tree)
Time2020-03-24 18:51:39
AuthorAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Log Message

PubSub: demo-slides updated (a bit more readble)

Change Summary

Incremental Difference

diff -r 81aa5f82fb7d -r d51d8c0c3152 _slides/PubSub-demo.slides.html
--- a/_slides/PubSub-demo.slides.html Sun Mar 22 18:43:33 2020 +0100
+++ b/_slides/PubSub-demo.slides.html Tue Mar 24 10:51:39 2020 +0100
@@ -13315,7 +13315,8 @@
1331513315 <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
1331613316 </div><div class="inner_cell">
1331713317 <div class="text_cell_render border-box-sizing rendered_html">
13318-<p>Notes: You can ignore <code>Topic.__init__()</code> and <code>Topic.__str__()</code> for now</p>
13318+<hr>
13319+<p>Note: You can ignore the dunder methods, <code>Topic.__init__()</code> and <code>Topic.__str__()</code> for now</p>
1331913320
1332013321 </div>
1332113322 </div>
@@ -13380,7 +13381,7 @@
1338013381
1338113382
1338213383 <div class="output_subarea output_stream output_stdout output_text">
13383-<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X192e8f50888&gt;&gt; has new value: HOI
13384+<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X1941ca82e88&gt;&gt; has new value: HOI
1338413385 </pre>
1338513386 </div>
1338613387 </div>
@@ -13394,6 +13395,7 @@
1339413395 <div class="text_cell_render border-box-sizing rendered_html">
1339513396 <p><strong>Using</strong> a Topic is trivial:</p>
1339613397 <p>Once a topic is created and a <em>callback</em> is registerd, that function is called whenever a new value is pubished.</p>
13398+<p><code>topic.publish(data)</code> <strong><em>kind</em></strong> of act as <code>callback(data, topic)</code>, for all callbacks in a loop</p>
1339713399
1339813400 </div>
1339913401 </div>
@@ -13433,7 +13435,7 @@
1343313435
1343413436
1343513437 <div class="output_subarea output_stream output_stdout output_text">
13436-<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X192e8f50888&gt;&gt; has new value: AGAIN
13438+<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X1941ca82e88&gt;&gt; has new value: AGAIN
1343713439 </pre>
1343813440 </div>
1343913441 </div>
@@ -13466,8 +13468,8 @@
1346613468
1346713469
1346813470 <div class="output_subarea output_stream output_stdout output_text">
13469-<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X192e8f50888&gt;&gt; has new value: FORCE
13470-Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X192e8f50888&gt;&gt; has new value: FORCE
13471+<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X1941ca82e88&gt;&gt; has new value: FORCE
13472+Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X1941ca82e88&gt;&gt; has new value: FORCE
1347113473 </pre>
1347213474 </div>
1347313475 </div>
@@ -13500,8 +13502,8 @@
1350013502
1350113503
1350213504 <div class="output_subarea output_stream output_stdout output_text">
13503-<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X192e8f50888&gt;&gt; has new value: SMART
13504-Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X192e8f50888&gt;&gt; has new value: SMART
13505+<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X1941ca82e88&gt;&gt; has new value: SMART
13506+Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X1941ca82e88&gt;&gt; has new value: SMART
1350513507 </pre>
1350613508 </div>
1350713509 </div>
@@ -13509,7 +13511,7 @@
1350913511 </div>
1351013512 </div>
1351113513
13512-</div>
13514+</div></section><section>
1351313515 <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
1351413516 </div><div class="inner_cell">
1351513517 <div class="text_cell_render border-box-sizing rendered_html">
@@ -13540,7 +13542,7 @@
1354013542
1354113543
1354213544 <div class="output_subarea output_stream output_stdout output_text">
13543-<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X192e8f50888&gt;&gt; has new value: I&#39;m so smart
13545+<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X1941ca82e88&gt;&gt; has new value: I&#39;m so smart
1354413546 </pre>
1354513547 </div>
1354613548 </div>
@@ -13573,7 +13575,7 @@
1357313575
1357413576
1357513577 <div class="output_subarea output_stream output_stdout output_text">
13576-<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X192e8f50888&gt;&gt; has new value: As I call demo only once
13578+<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo 1&#39; at 0X1941ca82e88&gt;&gt; has new value: As I call demo only once
1357713579 </pre>
1357813580 </div>
1357913581 </div>
@@ -13667,10 +13669,10 @@
1366713669
1366813670
1366913671 <div class="output_subarea output_stream output_stdout output_text">
13670-<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X192e8f50508&gt;&gt; has new value: ALL
13671-Demo 2:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X192e8f50508&gt;&gt; has new value: ALL
13672-Demo 3:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X192e8f50508&gt;&gt; has new value: ALL
13673-Demo 4:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X192e8f50508&gt;&gt; has new value: ALL
13672+<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X1941ca89848&gt;&gt; has new value: ALL
13673+Demo 2:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X1941ca89848&gt;&gt; has new value: ALL
13674+Demo 3:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X1941ca89848&gt;&gt; has new value: ALL
13675+Demo 4:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X1941ca89848&gt;&gt; has new value: ALL
1367413676 </pre>
1367513677 </div>
1367613678 </div>
@@ -13701,10 +13703,10 @@
1370113703
1370213704
1370313705 <div class="output_subarea output_stream output_stdout output_text">
13704-<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X192e8f50508&gt;&gt; has new value: again
13705-Demo 2:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X192e8f50508&gt;&gt; has new value: again
13706-Demo 3:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X192e8f50508&gt;&gt; has new value: again
13707-Demo 4:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X192e8f50508&gt;&gt; has new value: again
13706+<pre>Demo:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X1941ca89848&gt;&gt; has new value: again
13707+Demo 2:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X1941ca89848&gt;&gt; has new value: again
13708+Demo 3:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X1941ca89848&gt;&gt; has new value: again
13709+Demo 4:: Topic: &lt;&lt;Topic: &#39;demo2&#39; at 0X1941ca89848&gt;&gt; has new value: again
1370813710 </pre>
1370913711 </div>
1371013712 </div>
@@ -13740,8 +13742,8 @@
1374013742 <hr>
1374113743 <p>Notes:</p>
1374213744 <ul>
13743-<li>Python will automatically remember the object (<code>self</code>)</li>
13744-<li>Here, we use a <em>trick</em> (<code>self._no</code>) to show the different instances</li>
13745+<li>Python will automatically remember the object (<code>self</code>).</li>
13746+<li>Here, we use a <em>trick</em> (<code>self._no</code>) to show (which of the) many instances are used.</li>
1374513747 </ul>
1374613748
1374713749 </div>
@@ -13771,6 +13773,15 @@
1377113773 </div>
1377213774 </div>
1377313775
13776+</div>
13777+<div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
13778+</div><div class="inner_cell">
13779+<div class="text_cell_render border-box-sizing rendered_html">
13780+<hr>
13781+<p>Note: Again, you may ignore the dunder methods, <code>Demo.__init__()</code> and <code>``Demo.__str__()</code></p>
13782+
13783+</div>
13784+</div>
1377413785 </div></section><section>
1377513786 <div class="cell border-box-sizing code_cell rendered">
1377613787 <div class="input">
@@ -13810,7 +13821,7 @@
1381013821 </div>
1381113822 </div>
1381213823
13813-</div></section><section>
13824+</div>
1381413825 <div class="cell border-box-sizing code_cell rendered">
1381513826 <div class="input">
1381613827 <div class="prompt input_prompt">In&nbsp;[20]:</div>
@@ -13833,7 +13844,7 @@
1383313844
1383413845
1383513846 <div class="output_subarea output_stream output_stdout output_text">
13836-<pre>&lt;&lt;Demo: ._no=0 at 0X192e8e2b588&gt;&gt; got &#39;class&#39; from topic &lt;&lt;Topic: &#39;OO Demo&#39; at 0X192e8e39d88&gt;&gt;
13847+<pre>&lt;&lt;Demo: ._no=0 at 0X1941cadb588&gt;&gt; got &#39;class&#39; from topic &lt;&lt;Topic: &#39;OO Demo&#39; at 0X1941cad8348&gt;&gt;
1383713848 </pre>
1383813849 </div>
1383913850 </div>
@@ -13906,20 +13917,20 @@
1390613917
1390713918
1390813919 <div class="output_subarea output_stream output_stdout output_text">
13909-<pre>Demo:: Topic: &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt; has new value: Yes
13910-&lt;&lt;Demo: ._no=1 at 0X192e8f67348&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt;
13911-&lt;&lt;Demo: ._no=2 at 0X192e8f67388&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt;
13912-&lt;&lt;Demo: ._no=3 at 0X192e8f673c8&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt;
13913-&lt;&lt;Demo: ._no=4 at 0X192e8f67408&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt;
13914-&lt;&lt;Demo: ._no=5 at 0X192e8f67488&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt;
13915-&lt;&lt;Demo: ._no=6 at 0X192e8f674c8&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt;
13916-&lt;&lt;Demo: ._no=7 at 0X192e8f67508&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt;
13917-&lt;&lt;Demo: ._no=8 at 0X192e8f67548&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt;
13918-&lt;&lt;Demo: ._no=9 at 0X192e8f67448&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt;
13919-&lt;&lt;Demo: ._no=10 at 0X192e8f675c8&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt;
13920-Demo 4:: Topic: &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt; has new value: Yes
13921-Demo 3:: Topic: &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt; has new value: Yes
13922-Demo 2:: Topic: &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X192e8f67308&gt;&gt; has new value: Yes
13920+<pre>Demo:: Topic: &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt; has new value: Yes
13921+&lt;&lt;Demo: ._no=1 at 0X1941ca71e08&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt;
13922+&lt;&lt;Demo: ._no=2 at 0X1941ca71dc8&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt;
13923+&lt;&lt;Demo: ._no=3 at 0X1941ca82488&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt;
13924+&lt;&lt;Demo: ._no=4 at 0X1941ca82988&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt;
13925+&lt;&lt;Demo: ._no=5 at 0X1941ca82288&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt;
13926+&lt;&lt;Demo: ._no=6 at 0X1941cabf748&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt;
13927+&lt;&lt;Demo: ._no=7 at 0X1941cabf608&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt;
13928+&lt;&lt;Demo: ._no=8 at 0X1941cabf388&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt;
13929+&lt;&lt;Demo: ._no=9 at 0X1941ca82108&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt;
13930+&lt;&lt;Demo: ._no=10 at 0X1941cabf048&gt;&gt; got &#39;Yes&#39; from topic &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt;
13931+Demo 4:: Topic: &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt; has new value: Yes
13932+Demo 3:: Topic: &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt; has new value: Yes
13933+Demo 2:: Topic: &lt;&lt;Topic: &#39;four-10-plys&#39; at 0X1941ca98e48&gt;&gt; has new value: Yes
1392313934 </pre>
1392413935 </div>
1392513936 </div>
@@ -13959,7 +13970,7 @@
1395913970
1396013971
1396113972 <div class="output_subarea output_stream output_stdout output_text">
13962-<pre>Demo:: Topic: &lt;&lt;Topic: &#39;&#39; at 0X192e8f5e248&gt;&gt; has new value: fist
13973+<pre>Demo:: Topic: &lt;&lt;Topic: &#39;&#39; at 0X1941cabf4c8&gt;&gt; has new value: fist
1396313974 </pre>
1396413975 </div>
1396513976 </div>
@@ -14004,8 +14015,8 @@
1400414015
1400514016
1400614017 <div class="output_subarea output_stream output_stdout output_text">
14007-<pre>Demo:: Topic: &lt;&lt;Topic: &#39;&#39; at 0X192e8f5e248&gt;&gt; has new value: more and more
14008-Demo 2:: Topic: &lt;&lt;Topic: &#39;&#39; at 0X192e8f5e248&gt;&gt; has new value: more and more
14018+<pre>Demo:: Topic: &lt;&lt;Topic: &#39;&#39; at 0X1941cabf4c8&gt;&gt; has new value: more and more
14019+Demo 2:: Topic: &lt;&lt;Topic: &#39;&#39; at 0X1941cabf4c8&gt;&gt; has new value: more and more
1400914020 </pre>
1401014021 </div>
1401114022 </div>
@@ -14017,13 +14028,13 @@
1401714028 <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
1401814029 </div><div class="inner_cell">
1401914030 <div class="text_cell_render border-box-sizing rendered_html">
14020-<p><img src="https://upload.wikimedia.org/wikipedia/commons/e/ea/Thats_all_folks.svg" alt="From WikiMedia"></p>
1402114031 <p>Back to the
1402214032 <a href="http://mess.softwarebetermaken.nl/en/latest/SoftwareCompetence/DesignWorkShops/PubSub/index.html">main presentation</a></p>
14023-
14024-</div>
14025-</div>
14026-</div>
14033+<p><img src="https://upload.wikimedia.org/wikipedia/commons/e/ea/Thats_all_folks.svg" alt="From WikiMedia"></p>
14034+
14035+</div>
14036+</div>
14037+</div></section><section>
1402714038 <div class="cell border-box-sizing code_cell rendered">
1402814039 <div class="input">
1402914040 <div class="prompt input_prompt">In&nbsp;[26]:</div>
@@ -14048,7 +14059,7 @@
1404814059
1404914060
1405014061 <div class="output_subarea output_stream output_stdout output_text">
14051-<pre>These slides are generated at: 2020-03-22 14:15:38.809070+01:00
14062+<pre>These slides are generated at: 2020-03-24 10:24:17.362544+01:00
1405214063 </pre>
1405314064 </div>
1405414065 </div>