mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
generate in-page TOCs on demand
This commit is contained in:
+1
-7
@@ -13,13 +13,7 @@ body{counter-reset:h1 7}
|
||||
<blockquote class=q>
|
||||
<p><span>❝</span> Certitude is not the test of certainty. We have been cocksure of many things that were not so. <span>❞</span><br>— <cite>Oliver Wendell Holmes, Jr.</cite>
|
||||
</blockquote>
|
||||
<ol>
|
||||
<li><a href=#divingin>(Not) diving in</a>
|
||||
<li><a href=#romantest1>A single question</a>
|
||||
<li><a href=#romantest2>“Halt and catch fire”</a>
|
||||
<li><a href=#romantest3>More halting, more fire</a>
|
||||
<li>...
|
||||
</ol>
|
||||
<p id=toc>
|
||||
<h2 id=divingin>(Not) diving in</h2>
|
||||
<p class=f>How do you know that the code you wrote yesterday still works after the changes you made today? Every seasoned programmer has war stories of an “innocent” change that couldn't <em>possibly</em> have affected that other “unrelated” module… If this sounds familiar, this chapter is for you.
|
||||
<p>In this chapter, you're going to write and debug a set of utility functions to convert to and from Roman numerals. You saw the mechanics of constructing and validating Roman numerals in <a href="regular-expressions.html#romannumerals">“Case study: roman numerals”</a>. Now step back and consider what it would take to expand that into a two-way utility.
|
||||
|
||||
Reference in New Issue
Block a user