Skip to content

Commit

Permalink
Update Errata and fixes word overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminMichaelis committed Apr 3, 2024
1 parent 1e60cd5 commit f8f3584
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Errata.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ Zhou Jing & Benjamin Michaelis | 18 | 918 | Change "For example, in LISTING 18.2
Zhou Jing | 19 | 946 | Change "The worker thread writes plus signs to the console, while the main thread writes hyphens." to "The worker thread writes hyphens to the console, while the main thread writes plus signs."
Zhou Jing | 19 | 964 | Change "3:0052:Unhandled exception handler starting." to "Event handler starting"
Zhou Jing | 21 | 1022 | Change "3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912" to "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679" in output 21.1
Zhou Jing | 20 | 1018 | Change paragraph beginning with "The need to support TAP from the UI is one of the key scenarios that led to TAP’s creation." to "Supporting TAP from the UI is a fundamental scenario that led to the development of TAP. Another common scenario occurs on the server side when a client’s request involves retrieving a large dataset from a database. Given that database queries can be time-consuming, it’s crucial to hangle them efficiently. Instead of creating new threads or using threads from the limited thread pool, it’s advisable to utilize asynchronous programming patterns. These patterns avoid blocking threads while waiting for the database response, especially since the actual query operations are executed on a separate machine (the database server). This approach ensures that server resources are used optimally, allowing threads to manage other tasks rather than being idle during I/O operations."
Zhou Jing | 20 | 1018 | Change paragraph beginning with "The need to support TAP from the UI is one of the key scenarios that led to TAP’s creation." to "Supporting TAP from the UI is a fundamental scenario that led to the development of TAP. Another common scenario occurs on the server side when a client’s request involves retrieving a large dataset from a database. Given that database queries can be time-consuming, it’s crucial to hangle them efficiently. Instead of creating new threads or using threads from the limited thread pool, it’s advisable to utilize asynchronous programming patterns. These patterns avoid blocking threads while waiting for the database response, especially since the actual query operations are executed on a separate machine (the database server). This approach ensures that server resources are used optimally, allowing threads to manage other tasks rather than being idle during I/O operations."
Zhou Jing | 18 | 926-927 | Change 'LastName' references to be 'FirstName' in paragraphs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ public static void Main()
<LastName>Montoya</LastName>
</Person>");

Console.WriteLine($"{ person.Descendants("FirstName").First().Value }" +
$"{ person.Descendants("LastName").First().Value }");
Console.WriteLine(
$"{person.Descendants("FirstName").First().Value}" +
$"{person.Descendants("LastName").First().Value}");
//...
#endregion INCLUDE
}
Expand Down
8 changes: 4 additions & 4 deletions src/Chapter18/Listing18.31.RuntimeBindingToXMLWithDynamics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ public static void Main()
#region INCLUDE
dynamic person = DynamicXml.Parse(
@"<Person>
<FirstName>Inigo</FirstName>
<LastName>Montoya</LastName>
</Person>");
<FirstName>Inigo</FirstName>
<LastName>Montoya</LastName>
</Person>");

Console.WriteLine(
$"{ person.FirstName } { person.LastName }");
$"{person.FirstName} {person.LastName}");
//...
#endregion INCLUDE
}
Expand Down

0 comments on commit f8f3584

Please sign in to comment.