Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typos in Handbook (2nd ed., 3rd prt.) #545

Closed
ascherer opened this issue Apr 22, 2017 · 4 comments
Closed

Typos in Handbook (2nd ed., 3rd prt.) #545

ascherer opened this issue Apr 22, 2017 · 4 comments
Assignees

Comments

@ascherer
Copy link

@ascherer ascherer commented Apr 22, 2017

Issue description

Page xvii, line -7: “the ability to create refined graphics”
Page 11, sample 2-02: “Set line valuecolor to white”
Page 43, lines 7–8: “until it is changed again”
In chapter 7, “Interactivity,” several occurrences of value 100 should be replaced by width and height, resp.
Page 101, code 7-32: replace the second height with width
Page 103, lines 13–14: “… into a more compact, but equivalent expressions.”
Page 103, line 17: “…, it makes isit easier to …”
Page 146, line 11: there appears to be a double blank in “a  file”
Page 165, line -9: “The following example draws a black box” (and the example output is missing)
Page 195, line -8: “the center of the letter O”
Page 195, line -2: “cut the smaller triangle cut out of the larger”
Page 195, line -1: “beginContour()
Page 218, line -12: “In additional to storing“
Page 283: Delete line -2.
Page 289, line -10: “The next examples shows …”
Page 299: Unfortunate break between lines 4 and 5.
Page 299, line 6: “greater thatthan 0.5”
Page 306, line 17: “If direction is 1, then direction will become -1 and vice versa.”
Page 316: In the comments of code 22-11 replace large circles with large circle.
Page 341, line -11: “the first parameter must be …”
Page 346, line 20: “a color orof hexadecimal value”.
Page 404, line 10: “a whole lot from frame to frame”
Page 407, line 24: un-slant “Messa di Voce”
Page 415, .ine -6: “The following examples … demonstrates …”
Page 428: I suggest a new subtitle “Enhanced for loop” after code 28-25.
Page 429, line 3: “diagram above into to code:”.
Page 429, code 28-27: remove spaces in data pairs.
Page 440, line 3: excessive spacing in “AARON ’s”.
Page 495, line 12: Rephrase with one ‘available’ less.
Page 500, line 18: delete duplicate ‘length’.
Page 547, line -15: “Programmers decides …”
Page 551, line 6: “The setup() isin this example …”
Page 556, line -4: “… are the primary ways …”
Page 563, line 5: “... (sin(angle) * curveWidth);
Page 565, lines -6 and -7: Add a space around *.
Page 573, line -9; y1 = height/2;
Page 590, line 2: “[I] wonder if I would ofhave made”
Page 601, line -2: delete redundant “then”
Pages 606–608: the table header should be repeated, at least on every page, if not in every column
Page 610, line 10: missing closing parenthesis for “(p. 604 for text”
Page 622, line 6: “The name C++ is a geeky way”
Page 623, line -5: delete one “the” at the end
Page 624, line 8: “with the additional of”
Page 627, entry “Cohen, Harold”: replace hyphen with en-dash in “1973–1999”
Page 633, entry “data type”: “can be stored in variables

@ascherer ascherer changed the title Typo in Handbook Typos in Handbook (2nd ed.) Apr 22, 2017
@REAS REAS self-assigned this Apr 22, 2017
@ascherer ascherer changed the title Typos in Handbook (2nd ed.) Typos in Handbook (2nd ed., 3rd prt.) Apr 23, 2017
@ascherer
Copy link
Author

@ascherer ascherer commented Jun 15, 2017

Suggestion for improved coding convention in “Objects” chapter, exemplified by a modified version of Code example 25-04:

Spot spot; // Declare the object

void setup() {
  size(100, 100);
  noStroke();
  spot = new Spot(33, 50, 30); // Construct the object
}

void draw() {
  background(0);
  spot.display();
}

class Spot {
  // Data members
  float m_xpos, m_ypos, m_diameter;
  
  // Constructor
  Spot(float xpos, float ypos, float diameter) {
    m_xpos = xpos; // Set x-coordinate
    m_ypos = ypos; // Set y-coordinate
    m_diameter = diameter; // Set diameter
  }

  // Display function
  void display() {
    ellipse(m_xpos, m_ypos, m_diameter, m_diameter);
  }
}
@ascherer
Copy link
Author

@ascherer ascherer commented Jul 2, 2017

Suggestion for Page 424 in chapter “Arrays”: In addition to mentioning the arrayCopy(array1,array2) function, which copies the elements from array1 to array2, a footnote (and entry to the “Code Index”) about

array2 = array1.clone()

might be useful for the reader.

The former is prone to blow an ArrayIndexOutOfBoundsException if array2 does not have at least as many slots as array1.

The latter creates a new array2 of the same size and contents as the original array1.

(I'm not Java-savvy, but come from a C/C++ background, so I was wondering about “deep copy” vs. “reference” of the others array in Codes 33-13 and 33-14 on pages 521–522.)

@ascherer
Copy link
Author

@ascherer ascherer commented Jul 2, 2017

First full reading finished. Issue ready to be processed. 😉

@REAS
Copy link
Member

@REAS REAS commented Jul 3, 2017

Thank you for these! That was a tremendous amount of work. I'm sending the following on to the publisher:

  • Page xvii, line -7: “the ability to create refined graphics”
  • Page 43, lines 7–8: “until it is changed again”
  • Page 101, code 7-32: replace the second height with width
    . last line of code, "line(0, mouseY, width, mouseY);"
  • Page 103, lines 13–14: “… into a more compact, but equivalent expression.”
  • Page 103, line 17: “…, it makes it easier to …”
  • Page 146, Second line, first paragraph: there appears to be a double blank in “a file”
  • Page 165, Examples 13-4 is missing its image
  • Page 195, line -8: “the center of the letter O”
  • Page 195, line -2: “cut the smaller triangle out of the larger”
  • Page 195, line -1: “beginContour()”
  • Page 218, line -12: “In addition to storing“
  • Page 289, line -10: “The next example shows …”
  • Page 299: Premature break after "Montfort" between lines 4 and 5.
  • Page 299, line 6: “greater than 0.5”
  • Page 306, line 17: “If direction is 1, then direction will become -1 and vice versa.”
    . "If direction is 1, then it will become -1 and vice versa."
    . Note: make sure the text from the former page doesn't wrap back
  • Page 316: In the comments of code 22-11 replace large circles with large circle.
    . "// Set the position of the large curcle based on the"
  • Page 341, line -11: “because [the] first parameter must be …”
  • Page 407, line 24: un-slant “Messa di Voce”
  • Page 415, line -6: “chart demonstrate some”
  • Page 429, line 3: “diagram above into code:”.
  • Page 440, line 3: excessive spacing in “AARON ’s” to “AARON’s”
  • Page 495, line 12: Rephrase with one ‘available’ less. "adding tags or structure"
  • Page 500, line 18: delete duplicate ‘length’ "the length of the array is printed"
  • Page 547, line -15: “Programmers decide …”
  • Page 551, line 6: “The setup() in this example …”
  • Page 556, line -4: “… are the primary ways …”
  • Page 563, line 5: Add space betore * “... (sin(angle) * curveWidth);”
  • Page 565, lines -6 and -7: Add a space before *
  • Page 573, line -9; y1 = height/2;
  • Page 590, line 2: “wonder if I would have made”
  • Page 610, line 10: missing closing parenthesis for “(p. 604) for text”
  • Page 622, line 6: “The name C++ is a geeky way”
  • Page 623, line -5: delete one “the” at the end
  • Page 624, line 8: “with the additional of”
  • Page 627, entry “Cohen, Harold”: replace hyphen with en-dash in “1973–1999”
@REAS REAS closed this Jul 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.