Wrox Programmer Forums
|
BOOK: Beginning Object-Oriented Programming with C#
This is the forum to discuss the Wrox book Beginning Object-Oriented Programming with C# by Jack Purdum; ISBN: 978-1-1183-3692-2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Object-Oriented Programming with C# 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 February 16th, 2014, 10:09 PM
Registered User
 
Join Date: Jan 2014
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How about this example from Chapter 5? The table doesn't have any label names and the textbox names don't represent all the textboxes in the form pictured.

http://i.imgur.com/JBg2jEg.png
 
Old February 16th, 2014, 11:48 PM
Friend of Wrox
 
Join Date: Sep 2008
Posts: 234
Thanks: 0
Thanked 32 Times in 30 Posts
Default

Odd. There are 16 textboxes in Figure 5-6 and 16 textbox entries in Table 5-4. As to the labels, by the time most readers get to Chapter 5, they realize that the default label names are used if they are not referenced in the program. For the three that are referenced in the program, their label names and input values should make it clear which labels they are. You're the first person who has said they had trouble figuring the labels out.
__________________
Jack Purdum, Ph.D.
Author: Beginning C# 3.0: Introduction to Object Oriented Programming (and 14 other programming texts)
 
Old April 14th, 2014, 05:26 AM
Registered User
 
Join Date: Apr 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ple help

Quote:
Originally Posted by Qogrynt View Post
I've owned a prior version of this book, so I know that you do good work. I have to tell you, however, that the Chapter 2 examples in the 2012 edition could understandably really put off a beginning programmer. If this was the first version of the book I had seen, I'm not sure I would have made it past this chapter, as it doesn't leave a good impression. I wasn't aware of any Amazon difficulties, but I did have some serious problems with both examples in Chapter 2. Rather than publicly post something on an ecommerce site like your unbalanced 'reviewer' did, I'd rather try to have a dialog that could help folks with similar problems, as your proposed explanation still doesn't straighten out the issues that I see with the two examples. So, I'll provide my own experience in as detailed a manner as possible.

Try It Out Exercise: Pages 32-36





This wasn't too bad, just somewhat confusing, mostly because of steps 5 & 6. You ask the reader to create a new project in step 1, select Windows Empty Project in step 2, name the project in step 3, and uncheck the create directory for solution option in step 4. All is well so far.

In step 5, you first instruct the reader to add a Windows form to the project via the Project => Add Windows Form menu selection. You ask the reader to name the form frmMain.cs.

Next, however, you ask the reader to type their program name into the Name textbox, etc. This instruction belongs back on step 3, not step 5. This causes confusion.

Step 6 seems to be a continuation of what you were trying to do at the start of step 5 in adding a Windows form to the project. Again, this causes confusion to a beginning programmer.


Try It Out Exercise: Pages 44-49

This example, unless I'm really missing something, seems broken.

Step 1 is fine.

Step 2 is okay (adding the System Assemblies) until later.

Step 3 is where things really go wrong for me. You instruct the Reader to add a Code File via the Project => Add New Item menu sequence and to name the Code File frmMain.cs.

You then explain (correctly) that there is now a frmMain.cs source window. You also explain (incorrectly) that there is also a frmMain.cs [Design] window as well. No matter how I execute this, the [Design] window never shows. Why would it? You instructed the reader to add a Code File, not a Form Object, so no Design tab will appear. Am I missing something here? Could a difference between the VS beta version that you worked with and the production version be causing this? I've had programming folks that use VS daily try to get a [Design] tab to appear here - to no avail. This appears to be the central problem with this example - the appearance of a [Design] tab upon the creation of the frmMain.cs Code File. I've had multiple people try this sequence, and it does not appear. Your response below says it does. Is there an option or variable within VS that could account for the difference in experience?

I have a sneaking suspicion that Step 3 should have instructed the reader to add a Windows Form object rather than a Code File (or, possibly, the reader should have been directed to create a Windows Forms project rather than an Empty Project in Step 1), but even that doesn't make 100% sense. If the intent was actually to add a Windows Form object in Step 3, then Step 2 is completely unnecessary, as the appropriate assemblies are automatically added by Visual Studio when you add the form. There is no need to add them manually as instructed in Step 2.

Later in Step 3, you instruct the reader to double-click the empty form and to notice that a 'new tab frmMain.cs' has been created. First, there is no Windows Form to double-click, and second, you've already instructed the reader to create a Code File with the name frmMain.cs in Step 3 - why would we need another one by double-clicking a form object (that isn't there)?

The rest of the steps seem to be okay.


From a complete beginning programmer's perspective, the first 2 exercises in the book do not leave a great impression for what the rest of the book may hold.

The first exercise has instructions that are out of order and cause confusion.

The second exercise, in my opinion, just doesn't work. The reader is stuck looking for a [Designer] tab that just doesn't exist and really has no way to understand the way forward.

I hope this makes sense from a beginning programmer's perspective in working through your examples. The rest of them are solid. These two have issues, in my opinion. Unfortunately, they couldn't be placed in a more important position (at the beginning of a beginner's programming text).

I'd be happy to clarify anything that may be vague. Again, I really enjoy your teaching approach and want to help clarify the issues that some readers may be having.
Pls forgive my mistake in writing this post, I hope to be in the right section. I'm a totally new beginner in programming. I'd like to learn C# from the basics, is the 'Beginning Object-Oriented Programming with C# 4' the latest version?
I thank all of you for your precious help.

A.
 
Old April 14th, 2014, 07:04 AM
Friend of Wrox
 
Join Date: Sep 2008
Posts: 234
Thanks: 0
Thanked 32 Times in 30 Posts
Default Chapter 2

Thanks for taking the time to write. Yes, I know that the example in Chapter 2 is messed up, and I have no excuses for it. We covered the problem in an earlier post presented on this forum, so there's no sense rehashing it here. Corrections can be found there.

I do hope you'll take the time to read the rest of the book. Most people find it worthwhile despite the errors in Chapter 2.
__________________
Jack Purdum, Ph.D.
Author: Beginning C# 3.0: Introduction to Object Oriented Programming (and 14 other programming texts)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4: Pages 130 - 132 Querying for reviews & Displaying the reviews FlaUsa BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 January 24th, 2012 01:55 AM
Reviews jack_hilary BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 10 May 23rd, 2010 03:55 PM
Amazon S3 Storage jimibt BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 June 5th, 2007 11:42 AM
I've read some bad reviews; what do readers think? disruptivehair BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 11 January 18th, 2006 04:44 PM





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