Strip comments and inline ids onto h*
This commit is contained in:
parent
1997a7846d
commit
0f5f617adb
362 changed files with 2519 additions and 6694 deletions
23
10-01.html
23
10-01.html
|
|
@ -10,16 +10,9 @@
|
|||
<meta name="vspubdate" content="07/01/97" />
|
||||
<meta name="vscategory" content="Web and Software Development: Game Development,Web and Software Development: Graphics and Multimedia Development" />
|
||||
|
||||
<title>Michael Abrash's Graphics Programming Black Book Special Edition: Patient Coding, Faster Code</title><!-- HEADER -->
|
||||
<!-- Empty Reference Subhead -->
|
||||
<!--ISBN=1576101746//-->
|
||||
<!--TITLE=Michael Abrash's Graphics Programming Black Book Special Edition//-->
|
||||
<!--AUTHOR=Michael Abrash//-->
|
||||
<!--PUBLISHER=The Coriolis Group, Inc.//-->
|
||||
<title>Michael Abrash's Graphics Programming Black Book Special Edition: Patient Coding, Faster Code</title>
|
||||
<meta name="chapter" content="10" />
|
||||
<meta name="pages" content="190-193" />
|
||||
<!--UNASSIGNED1//-->
|
||||
<!--UNASSIGNED2//-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
@ -37,10 +30,10 @@
|
|||
|
||||
<p><br /></p>
|
||||
|
||||
<h2><a id="Heading1"></a>Chapter 10<br />
|
||||
<h2 id="Heading1">Chapter 10<br />
|
||||
Patient Coding, Faster Code</h2>
|
||||
|
||||
<h3><a id="Heading2"></a>How Working Quickly Can Bring Execution to a Crawl</h3>
|
||||
<h3 id="Heading2">How Working Quickly Can Bring Execution to a Crawl</h3>
|
||||
|
||||
<p>My grandfather does <i>The New York Times</i> crossword puzzle every Sunday. In ink. With nary a blemish.</p>
|
||||
|
||||
|
|
@ -64,7 +57,7 @@
|
|||
|
||||
<p>In this chapter, I’m going to walk you through a simple but illustrative case history that nicely points up the wisdom of delaying gratification when faced with programming problems, so that your mind has time to chew on the problems from other angles. The alternative solutions you find by doing this may seem obvious, once you’ve come up with them. They may not even differ greatly from your initial solutions. Often, however, they will be much better—and you’ll never even have the chance to decide whether they’re better or not if you take the first thing that comes into your head and run with it.</p>
|
||||
|
||||
<h4 align="left"><a id="Heading3"></a>The Case for Delayed Gratification</h4>
|
||||
<h4 align="left" id="Heading3">The Case for Delayed Gratification</h4>
|
||||
|
||||
<p>Once upon a time, I set out to read <i>Algorithms</i>, by Robert Sedgewick (Addison-Wesley), which turned out to be a wonderful, stimulating, and most useful book, one that I recommend highly. My story, however, involves only what happened in the first 12 pages, for it was in those pages that Sedgewick discussed Euclid’s algorithm.</p>
|
||||
|
||||
|
|
@ -72,7 +65,7 @@
|
|||
|
||||
<p>The problem at hand, then, is simply this: Find the largest integer value that evenly divides two arbitrary positive integers. That’s all there is to it. So warm up your pattern matchers...and go!</p>
|
||||
|
||||
<h3><a id="Heading4"></a>The Brute-Force Syndrome</h3>
|
||||
<h3 id="Heading4">The Brute-Force Syndrome</h3>
|
||||
|
||||
<p>I have a funny feeling that you’d already figured out how to find the GCD before I even said “go.” That’s what I did when reading <i>Algorithms;</i> before I read another word, I had to figure it out for myself. Programmers are like that; give them a problem and their eyes immediately glaze over as they try to solve it before you’ve even shut your mouth. That sort of instant response can certainly be impressive, but it can backfire, too, as it did in my case.</p>
|
||||
|
||||
|
|
@ -95,10 +88,6 @@
|
|||
|
||||
<div align="center">
|
||||
Graphics Programming Black Book © 2001 Michael Abrash
|
||||
</div><!-- all of the reference materials (books) have the footer and subfoot reveresed -->
|
||||
<!-- reference_subfoot = footer -->
|
||||
<!-- reference_footer = subfoot -->
|
||||
<!-- BEGIN SUB FOOTER -->
|
||||
<!-- END FOOTER -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in a new issue