The Services example database is on Github
I have added the ConferenceDB script to the Git repo so those samples are easier to handle. Make sure you check the file creation commands, and make the paths match your local machine. As always, email with any questions!
Code now on GitHub
I have moved the code for the book to GitHub. You can fork it here:
https://github.com/sempf/CSharpForDummies
I was considering a set of GitHub Pages to replace the original CMS I used to use, but honestly this tumble log is kinda nice. All you really need is errata and source code, and that is easy to handle this way.
Anyway, fork the repo and let’s get coding! I’m started on the 2012 version of the book - now with Metro!
S
Errata
I’ll add errata to this post. There hasn’t been much, fortunately.
From Chuck Spahr, one of the authors:
From J.W
Page 78 recommends using Double.Epsilon. I hadn’t come across this before so I did some further reading. The following link is a discussion that implies that under some conditions use of Double.Epsilon can be inaccurate due to some circumstances where the compiler uses the 80 bit register and and some where it uses the 64 bit one. The detail is outside of the scope of the book but one of the contributers recommended using a known small number instead of Double.Epsilon. This seemed to me to be a better solution (but I could well be worng) http://bytes.com/topic/c-sharp/answers/253204-meaning-double-epsilon
From R.B.
On page 64 in the description of the RemoveWhiteSpace program, the text incorrectly identifies which pass does what. You start with a string “ this is a\nstring”. The text describes the passes made on the string and says the third pass removes the newline and the fourth returns a -1. I believe there is actually a fifth pass . The third pass would actually remove the space between “is” and “a” and the fourth pass would deal with the newline.
Passes are:
1. Leading space
2. Space between “this” and “is”
3. Space between “is” and “a”
4. Newline
5. Return -1
From G.B.
I’m sure page 344 in the Student constructor it should be:
public Student(string name, double grade)
{ Name = name; Grade = grade; }
not:
public Student(string name, double grade)
{ Name = Name; Grade = grade; }
From W.A.S.
The conversions from int to string in the Graphics example in Book 3 Chapter 5 are faulty. Thoughout I say
(int)variable.ToString();
but it should be
Int32.Parse(variable.ToString();
Book 3 Sample Code ready
I have had to rebuild some of the sample code from C# 2010 All In One for Dummies from scratch, and I am going to have it done before BUILD, because I am starting a new book around then. Book 3 is done, and I am started on Book 6. Book 4 has no real code and Book 5 is in the download from an earlier post.
Book 3 is about the framework pieces that don’t fit neatly into any other book:
- Security
- Data
- File system
- Networking
- Graphics
There are two interesting caviats to this code. First, the Data chapter says it uses Northwind, but it doesn’t. I changed the sample to use AdventureWorks since that is the current sample.
Second, there are a few small bugs in the printed code form the Graphics chapter. I (int) a couple of ToString() statements, which you can’t do. You have to use Int32.Parse.
Apologies
I need to apologize, savvy readers.
My web server’s hard drive failed, and I am having a devil of a time getting it back up. I decided a few weeks ago to get the code up on GitHub, and set up some pages for errata and whatnot, but that is sloow in coming. I am learning too in that arena.
So, for now we have this Tumble Log. I will have the GitHub Pages account up and running by the end of the month if at all possible.
I love the C# development community (And VB too!) and would like these pages to be a home at least in part to all the readers out there.
For now, here is a link to the Book 1, 2 and 5 sample code. 4 and 6 require some TLC, as the reader-ready code never got committed to source control (let that be a lesson to you all out there). I’ll have those up by EOM too.
Thanks for everyone’s patience. If you need anything at all, email me at bill@pointweb.net.