By Developers, For Developers

Historical errata for No Fluff Just Stuff 2006 Anthology

PDF PgPaper PgTypeDescriptionFixed onComments
65TYPO

Code example uses class DemoCI, the text in following para.
refers to DemoDI.

145TYPO

Second to last line — replace “propably” with “probably”

193SUGGEST

you probably want to know about this one:

http://masterbootrecord.de/blog/permalink/Behaviour-Using-CSS-selectors-to-apply-Javascript-behaviours.html

201TYPO

in … building groundbreaking tools such as pic, grap, make, sed, awk …
“grap” should be “grep”

00ERROR

A misconception in RegularExpressionInputStream.java lets the Stream bypass a matching pattern in the first line (will transform all matching patterns but pattern(s) in first line)

The following code snippet seems to correct the problem:

public RegularExpressionInputStream( InputStream is, RegularExpressionReplacer rer ) throws IOException
{
super( is );
br = new BufferedReader( new InputStreamReader( in ) );
this.rer = rer;

// DON’T fetchAndTransformNextLine() here, i.e. outside read()
// -> will not transform matching pattern in first line of stream
// (Stream passes a matching pattern in first line untransformed)
// Populate buffer in read() instead
}

/*
* Read the next byte from the stream.
*
*/
public int read() throws IOException {
int retValue = EOF;

if( buffer == null ) {
// Populate the buffer with a line, transforming
// if there are any matches
fetchAndTransformNextLine();
}
…

150TYPO

I think there’s an error in the diagram, the constructor of the AnInterfaceImpl class has the wrong name.

157TYPO

In the samplecode, at the bottom of the page, is a “<” instead of “<”.

144ERROR

The decorator diagram doesn’t show well in the PDF version. I suggest that it is redrawn with a diagramming tool. Its current rendering suggests that it is a scanned bitmapped or was created with an inappropriate tool.

Categories: