I am doing a lot of reading from various ebooks, mainly on iphone development and Objective-C at the moment, and I am just astounded at the general poor quality of the all the books.
Im currently going through Objective-C Developer Reference by Jiva DeVoe (I read the amazon reviews too late) and it is just horrible to find errors in the sample code let alone poor english and bad explanations, poor structure of book, etc.
Objective-C is a little confusing for soemone with a C\C++\Java background so I waste a lot of time looking at some of the examples, E.g
Listing 6.3 Serializing a table without KVC.
This is just 1 example from 1 book.
Im currently going through Objective-C Developer Reference by Jiva DeVoe (I read the amazon reviews too late) and it is just horrible to find errors in the sample code let alone poor english and bad explanations, poor structure of book, etc.
Objective-C is a little confusing for soemone with a C\C++\Java background so I waste a lot of time looking at some of the examples, E.g
Listing 6.3 Serializing a table without KVC.
Code:
-(BOOL)serializeToTable:(Table *)inTable
{
Row *row = [inTable addRow];
for(Column *column in row)
{
if([[column name] isEqualToString:@”firstName”])
[column setValue:[self firstName]];
else if([[column name] isEqualToString:@”lastName”])
[column setValue:[self lastName]];
else if([[column name] isEqualToString:@”age”])
[column setValue:[self lastName]]; // ***Surely should be "age"
else if([[column name] isEqualToString:@”birthDate”])
[column setValue:[self lastName]]; // ***Surely should be "birthDate"
...
}
[row save];
}
This is just 1 example from 1 book.