ERRATA and Clarifications Exploratory Programming for the Arts and Humanities Nick Montfort MIT Press, 2016 http://mitpress.mit.edu/exploratory This sheet updated February 2, 2018. Thanks to Angela Chang, Michael Greenberg, Christopher Vickery, Jim Brown, and Adam Ladziński. FIRST EDITION, FIRST PRINTING: p. 63 I changed the name of a function in several places, but left the old name in one case. TO CORRECT: ON p. 63 Change "scope_example(" to "scoped(" ___ TO CORRECT: ON p. 89 Change "make use their methods," to "make use of their methods," ___ TO CORRECT: ON p. 98 Change "10,003" to "1000" with a superscripted "3" after it. (That is, one thousand to the third power.) ___ TO CORRECT: ON p. 107 Change "In chapter 7, the discussion" to "In chapter 10, the discussion" ___ p. 112 The variable wyatt, at the top, is assigned a different value (a longer string) than it was in earlier drafts of the book. Instead of being 43 characters long, this string is 86 characters long. So, several of the numbers on the next two pages, which were not changed when the string was involved, are wrong. Several corrections will be made in the next edition, although I hope learners will be able to figure out that a different length is meant even if they don't see this correction. TO CORRECT: ON p. 113 Change "it reaches 42" to "it reaches 85" Change "43 characters long" to "86 characters long" Change "the 43 characters" to "the 86 characters" Change "offset 42" to "offset 85" ON p. 114 Change "up to 42" to "up to 85" Change "number 42" to "number 85" Change "character 42" to "character 85" Change "character 43 of the example" to "character 86 of the example" Change "there is no character 43" to "there is no character 86" ___ TO CORRECT: ON p. 136 Change "stright" to "straight" ___ p. 138 Learners (and instructors) may have different sorts of line endings depending upon the operating system used and the method of downloading text files from Project Gutenberg (and other places). So, a regular expression with \r\n\r\n (as shown in the book) may not work for some, while substituting \n\n in the expression may work. However, anyone who downloads a text file directly from Project Gutenberg by, for instance, right-clicking a link and choosing "Save link as..." you should get exactly the same file that I did, and my instructions, even those dealing with line endings, should be applicable. ___ p. 139 The count of vowels mentioned is literally true but unhelpful. TO CORRECT: ON p. 139 Change "more than twenty thousand of them" to "more than two hundred thousand of them" ___ p. 164 It's potentially confusing that the code at the bottom assumes a transparent image; the variable a needs to have a value for this code to work. It’s easier to just give this example for images without transparency only. TO CORRECT: ON p. 164 Change "to all of this:" to "to all of this--this version is only for images without transparency:" In making the change above, typeset "--" as an en dash. In the third-to-last and last lines, both code, remove ", a" at the end. ___ p. 179 TO CORRECT: ON p. 179 Change "If one of them is 20, 205." to "If one of them is 20, 235." ___ p. 202 TO CORRECT: ON p. 202 Change "it's still worth nothing that" to "it's still worth noting that" ___ p. 207 On the second-to-last line, the "halfway point" is mentioned incorrectly; it is correct in the code at the beginning of the paragraph. TO CORRECT: ON p. 207 Change "len(w)/w" to "len(w)/2" ___ p. 208 Third line from the bottom has a phrase repeated by mistake. TO CORRECT: ON p. 208 Change "of such of such a list" to "of such a list" ___ p. 224 [A an entry in an earlier version of the errata sheet said to make a change here to discuss a vertical line rather than a horizontal line. That correction was itself a mistake -- no changes here.] ___ p. 230 TO CORRECT: ON p. 230 Change "Write variance(), a function that accepts a list or array of numbers and returns the mode." to "Write variance(), a function that accepts a list or array of numbers and returns the variance." ___ p. 234 TO CORRECT: ON p. 234 Change "that I would if the data were arranged randomly." "than I would if the data were arranged randomly." ___ p. 254 TO CORRECT: ON p. 254 Change "As I final" to "As a final" ___ p. 273 TO CORRECT: On p. 273 Change "Scholars in the humanities of have already" to "Scholars in the humanities have already" ___ p. 289 TO CORRECT: Change "Alice, Nathan." to "Altice, Nathan." ___ p. 290 ADD IN REFERENCE LIST WITH *ITALICS* INDICATED: Liao, Yuen-Kuang Cliff, and George W. Bright. "Effects of computer programming on cognitive outcomes: A meta-analysis." *Journal of Educational Computing Research* 7 (3): 251-268, 1991. Salomon, Gavriel, David N. Perkins, and Tamar Globerson. "Partners in cognition: Extending human intelligence with intelligent technologies." *Educational Researcher* 20 (3): 2-9, 1991. ___