Skip to content

Commit

Permalink
deploy: 6c25cd5
Browse files Browse the repository at this point in the history
  • Loading branch information
pintergreg committed Oct 20, 2024
1 parent 74bf30b commit da111cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion slides/12_clean_code.html
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ <h1>meaningful names</h1>
<p>this section is based on the book <em>Clean Code</em> (chapter 2) by
Robert C. Martin <span class="citation"
data-cites="martin2009clean">[2]</span></p>
<p>with own examples</p>
</div><div class="column" style="width:40%;">
<p><img data-src="figures/publicdomainvectors/hand-with-bottle.svg"
height="300" /></p>
Expand Down Expand Up @@ -584,6 +585,7 @@ <h1>functions</h1>
<p>this section is based on the book <em>Clean Code</em> (chapter 3) by
Robert C. Martin <span class="citation"
data-cites="martin2009clean">[2]</span></p>
<p>with own examples</p>
</div><div class="column" style="width:40%;">
<p><img data-src="figures/publicdomainvectors/cogwheel.svg"
height="300" /></p>
Expand Down Expand Up @@ -1051,6 +1053,7 @@ <h1>comments</h1>
<p>this section is based on the book <em>Clean Code</em> (chapter 4) by
Robert C. Martin <span class="citation"
data-cites="martin2009clean">[2]</span></p>
<p>with own examples</p>
</div><div class="column" style="width:40%;">
<p><img data-src="figures/publicdomainvectors/notebook-papers.svg"
height="300" /></p>
Expand Down Expand Up @@ -1198,7 +1201,7 @@ <h2>good comments</h2>
<div class="fragment">
<p><strong>TODOs – good or bad?</strong></p>
<div class="sourceCode" id="cb38"><pre
class="sourceCode python"><code class="sourceCode python"><span id="cb38-1"><a href="#cb38-1" aria-hidden="true" tabindex="-1"></a><span class="co"># </span><span class="al">TODO</span><span class="co">: this allows invalid month, day, hour, minute and seconds values</span></span>
class="sourceCode python"><code class="sourceCode python"><span id="cb38-1"><a href="#cb38-1" aria-hidden="true" tabindex="-1"></a><span class="co"># </span><span class="al">TODO</span><span class="co">: this allows invalid month, day, hour, minute and second values</span></span>
<span id="cb38-2"><a href="#cb38-2" aria-hidden="true" tabindex="-1"></a>re.match(<span class="vs">r&quot;\d</span><span class="sc">{4}</span><span class="vs">-\d</span><span class="sc">{2}</span><span class="vs">-\d</span><span class="sc">{2}</span><span class="vs"> \d</span><span class="sc">{2}</span><span class="vs">:\d</span><span class="sc">{2}</span><span class="vs">:\d</span><span class="sc">{2}</span><span class="vs">&quot;</span>, timestamp)</span></code></pre></div>
<p><span class="text-smaller">editors can collect <code>TODO</code> (and
<code>FIXME</code>) annotations and warn about them</span></p>
Expand Down

0 comments on commit da111cc

Please sign in to comment.