Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 2nd, 2008, 08:26 PM
Registered User
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 5: Programming

Wow, so much to cover and so little space, and 2 languages! Overall a pretty good overview I reckon. I do have some feedback on the chapter (pretty minor stuff though, I know there is a limit to what can be covered):

1. A small section on operator precedence might have been useful for the uninitiated, e.g. 2 + 5 * 10 is not the same as (2 + 5) * 10.

2. The logical operators table could have referenced the C# & and | operators (these force both sides to be evaluated) as matching the VB.NET And and Or operators. This is a minor issue given the book is for beginners but it would make the table consistent with both language capabilities.

3. A small discussion of reference type objects as parameters (which copy the reference to the object) versus the discussion which covered value type (int, bool, etc) parameters which copy the contents of the parameter.

4. More of a question this one, on page 188 the default access modifier for a class is specified as private, I thought that the default for a class was internal and the default for class members was private?

From what I have seen so far this is a well structured book and I am finding it an excellent introduction to ASP.NET 3.5.

Cheers,

Baz.

You can teach an old dog new tricks, sometimes.
 
Old May 3rd, 2008, 02:35 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Baz,

With regards to nr 1 through 3: great suggestions; I'll add them to my list.

Re: nr 4: you are absolutely right. internal (Friend for the VB people) is the default for a class, not private. In fact, there wouldn't be much point in having a private class in a namespace directly as you couldn't instantiate or use it (unless it was a nested class).
I'll add this to the errata section.

I am glad you are enjoying the book....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old June 28th, 2008, 05:24 AM
Registered User
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have just seen the errata entry for default access modifier for a class, corrected from 'private' to 'internal' (pg 188):
"The default is internal (Friend in VB.NET) which hides the class by default."

This is still not absolutely correct, it does hide the class to external assemblies, but does not hide it to any other code within the same assembly. So the access modifier has been corrected, but how it hides the class has not been updated in line with the behaviour of 'internal'. I hope I am not being too pedantic here.

Cheers,

Baz.
_______________________________________
You can teach an old dog new tricks, sometimes.
 
Old June 30th, 2008, 10:33 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Not, you're not too pedantic; you're absolutely right.

I'll have it fixed....

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
device DLL programming in client side programming hendyhanusin ASP.NET 1.0 and 1.1 Professional 2 February 19th, 2009 12:01 PM
device DLL programming in client side programming hendyhanusin ASP.NET 2.0 Professional 1 March 21st, 2007 08:04 AM
Chapter 10 - Beginning VB6 database programming darryck VB Databases Basics 3 October 13th, 2003 03:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.