This book is not designed to teach you the language and I think the examples (errors and all) are more to give you a visual of the text then to be used and compiled. If you are a programmer then this is an extremely valuable resource collection (noone can remember what everything does all the time).