Reading and Revising: Week Two
Following my revision/rereading notes from the first week's readings, here are my notes for the second week (chapters 9-12, although in truth I also assign 12 the first week; this just keeps its revision notes in sequence).
Chapter 9
Overall this chapter holds up pretty well; even in HTML5, I still advocate writing in XHTML-Strict style by following the six rules on pages 94-96.
I've come to favor the Mozilla Developer Network, MDN, Documentation for HTML5, CSS, and JavaScript over SitePoint or HTML Dog (p. 94)
Introduce the stripped-down HTML5 Doctype: <!DOCTYPE html> (p. 94)
On 96, I should be more explicit that classes and IDs, like file and directory/folder names, are case-sensitive. It's implied, but it could be better.
The Metadata stuff on 97 needs to be rewritten for HTML5 and RWD: the meta-charset and meta-viewport tags especially.
The sample structure on 99 could move on to use <header>, <footer> and other new sectioning elements in HTML5. The IDs can still stay in place, and open a discussion of modular CSS that relies on IDs without the element when possible (e.g., #footer instead of div#footer or footer#footer).
Page 100 is missing the vocabulary term fragment identifierfor URLs that point to specific IDs in the HTML.
HTML5 now specifies that <cite> works as described on page 100.
Page 101 should mention HTML5's <aside> element under "Naming Classes and IDs."
Chapter 10
There are some significant changes (minor, but significant) that Chapter 10 requires.
I think it is better practice to use elementless ID and class selectors whenever possible (e.g., #header or .callout) for general use, reserving the use of the element with the selector only for styles that deviate from the general case (pp. 106-107).
Need to add additional CSS2 and CSS3 selectors that have broader browser support, particularly CSS2 and CSS3 [http://www.w3.org/TR/css3-selectors/#attribute-selectors](attribute selectors) (pp. 107-113).
Need to double-check status of styling sibling relationships where the first element is the target, not the second (p. 109).
Reference the rgba() color declaration (p. 114).
Deal more with relative units em and rem in all text/font style declarations (e.g., p. 114).
Address percentage over pixel units in the Boxes sections (pp. 115-118).
Address newfound utility of float: in certain RWD layouts (as part of a broader treatment of RWD).
Completely rewrite the "Design Images and Textures" section to address both CSS3 and pixel-doubled/@2X retina/high-density graphics (p. 118-119).
Chapter 11
The entire Rapid Prototyping Kit is in need of an HTML5-based refresh. Although there is a simple HTML5 version on the companion site, for reasons I can't explain it does not appear in the RPK GitHub repo.
Instead of the clunky, temperamental XAMPP Web server, I'm going to advocate for installing Node.js and running a package like http-server, which fires up a little web server in any directory where you run the http-server command from the command line (p. 124).
Typography is a design issue that needs a lot more attention, including typographic or modular scales, the use of @font-face in CSS as well as hosted solutions like TypeKit or Google Fonts (p. 130).
Chapter 12
There are also in this chapter some significant changes that would appear to be minor:
In addition to the graphical File view in Windows, OS X, etc., I want to add the view of files as seen from the command line and the ls command (pp. 134-135).
When I go to add more material about Git, there will need to be a sidebar or something that addresses how Git on Windows handles line breaks (pp. 138-139).
Big change: In the book, I advocate for using Tabs for indentation. I'm now of the mind that two spaces are superior (in the intervening years, the two-space convention from Ruby made its mark on me). Need instructions for setting up editors to convert a strike of the Tab key into two spaces (p. 140).
For JavaScript comments, I will probably go the way I've trying to go in my own commenting, which is to use //-style inline comments, even for blocks, as jQuery implements in their style guide (p. 143).












