Welcome Guest Search | Active Topics | Members | Log In | Register

Issues that I found in Chapter 3 Options · View
mikener
Posted: Wednesday, December 30, 2009 7:40:17 AM
Rank: Newbie
Groups: Member

Joined: 12/29/2009
Posts: 4
Points: 12
Location: New York
I just completed reading chapter 3. In that chapter I found what I believe to be few issues. I say believe because I plan on reading the book first and then testing the code.

1. The following quote is taken from the chapter 3.
Quote:
Here is the SQL that is needed to create this table
The SQL is not listed in the book.


2. The method GetPermissionsByAccountID hard codes the account number to be 1

3. The method GetPermissionByID should return a list. Since the PermissionID is unique, this method should return a Permission Object instead of a list

4. The Login method in the AccountService class is listed twice. The two listings do not match.
asiemer
Posted: Thursday, December 31, 2009 11:55:08 AM

Rank: Administration
Groups: Administration

Joined: 12/8/2008
Posts: 187
Points: 313
Location: California
1) Ooops! A good chunk of the SQL was pushed out of the book into offline material.

2) Ok.

3) I would think that GetPermissionsByID might return a list and GetPermissionByID might return a single object. Depends on the ID in question I guess as getting a list of permissions by ID could be gotten by a permission ID or a container of permissions ID. It is too vauge.

4) Do the two login methods perform different behaviors?

Andrew Siemer
www.andrewsiemer.com
blog.andrewsiemer.com
forum.socialnetworkingin.net
blog.socialnetworkingin.net
www.pictfresh.com
mikener
Posted: Thursday, December 31, 2009 1:00:15 PM
Rank: Newbie
Groups: Member

Joined: 12/29/2009
Posts: 4
Points: 12
Location: New York
asiemer wrote:
1) Ooops! A good chunk of the SQL was pushed out of the book into offline material.

2) Ok.

3) I would think that GetPermissionsByID might return a list and GetPermissionByID might return a single object. Depends on the ID in question I guess as getting a list of permissions by ID could be gotten by a permission ID or a container of permissions ID. It is too vauge.

4) Do the two login methods perform different behaviors?


#3 I am not sure of what you mean this response. That's okay because I had a brain cramp when I wrote my initial post. The GetPermissionByID should NOT return a list as it looks up the permission by the primary key. That's what I should have written.

#4. The code for the AccountService contains a Login method. When the complete AccountService method is listed, the Login method is listed one way. The book then shows the Login method once again. This second listing differs with the first listing. The difference being the return value of GetAccountByUsername. The inital listing correctly shows that the return was a single Account where the second listing has a return value as a List of Accounts. I was just pointing out the inconsistency of the listings.

By the way, my overall feelings about the book are very positive. This book is exactly what I was looking for.

Take care
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.037 seconds.