Bad Programming Books

Status
Not open for further replies.
:mad:

I wish the folks that publish some of these tomes would test the fscking example code.

I'm evaluting a book Python and Tkinter Programming, (I evaluate all Python books) and there are seven fscking errors in the first example. Plus code fragments in the text do not match the program listing.

I check the online errata, and there were two more errors that occured in the first printing...

Plus no comments in the code.

q
 

dockeen

Ars Tribunus Militum
1,600
This is interesting. If I am taking a shot in the dark on new book, I will use as one piece of data the reviews of reders on amazon.com. If there are a good number of diverse reviews, you get a decent data point about how a useful or bad a book is. Python and TKinter Programming got a mean of 4.5 (5) stars.

I once had a profressor tell me that a book with errors was a godd thing, it separated the top students from the rest.

:mad: :mad: :mad:

Wayne
 

dereferenced

Ars Scholae Palatinae
706
They say you can't tell a book by its cover. That may be, but when it comes to computer books I'm starting to think you can tell one by its publisher. In general, I steer clear of books published by Macmillan and its subsidiaries. That includes Que, Sams, New Riders and a few others I'm sure I've forgotten. They seem only interested in getting books out the door on particular subjects and could care less as to their quality. I dismiss out of hand anything with dummies, idiots, morons, or 'learn x in x' in its title.

I would say that the vast majority of computer books are pure crap. Truly good books are hard to find. I tend to stick to the authoritative works. For example, when you want a book on a particular programming language it's best to get one written by someone directly involved in the creation of that language.
 

skylark

Ars Tribunus Militum
2,388
Most of the programming books are actually useless crap that seems to be made according to the principle "the bigger the better".
They take 10 pages to explain something completely obvious that should have taken 1 paragraph and when things begin to be actually new and interesting the chapter is finished.
I don't like books that take an example and follow it throughout the chapters, so you can't understand a point if you haven't typed the entire fucking thing from the start to chapter n you can't do anything of chapter n+1.$
Good programming are very few (generally speaking O'Reilly and Wrox seem decent IMHO).
 

stickboy

Ars Tribunus Angusticlavius
6,218
Subscriptor
From Peter Norvig's Java IAQ:
Most Java books are written by people who couldn't get a job as a Java programmer (since programming almost always pays more than book writing; I know because I've done both). These books are full of errors, bad advice, and bad programs. These books are dangerous to the beginner, but are easily recognized and rejected by a programmer with even a little experience in another language.
(Of course, the above applies to much more than just Java...)

I usually stay away from anything that isn't considered a "bible" in its field.
 

DrPizza

Well-known member
93,870
To be honest, small bugs in code samples don't bother me that much; misspelled variables or occasionally omitted punctuation in the samples aren't that big a deal. I don't like things that are fundamentally wrong, like <tt>void main()</tt>, however. The former I can excuse by blaming whoever was responsible for editing or typesetting (or DTPing or whatever it's called these days). The latter, however, undermines the credibility of the person writing the example. It's like the difference between a typo and a misspelling -- they may look similar, but only one is a result of a lack of knowledge.

It's higher level features of the text that are more important. Is it accurate, clear, and concise? Does it teach things properly. A common example in many introductory books is to have someone implement a linked list. Many books teach this in an abysmal manner. I've come across books that suggest an <tt>operator[]</tt> overload for a linked list -- that is, indexed access to a container that has linear-time access, and other absurdities. Things like that are far more telling than bugs in the code.
 
Things like that are far more telling than bugs in the code.

As I look through it, it's far worse than bugs in the code.

Most Python books have a blurb about Tkinter, its the most common way to do cross platform interfaces. This book is only one dedicated to the subject, which may explain the high rating at Amazon.

One third or more of the text is taken up with Appendices, which could have been made more useful by puttting them on CD or online. There are complete program listings with no comments, which are explained with text and code fragments later on that are sometimes incorrect, sometimes don't match and sometimes worthless. The online errata is not up to date.

And this is the second corrected printing :eek:

Well, I'm going to see how much I can tolerate. :D

q
 

mikebaz

Ars Centurion
342
Subscriptor
One of the full-time instructors at work has a decent algorithm for judging a technical book (assuming you have physical access to the book or something like "test" pages like Amazon has now): open the book to a random content page, choose a random content area, and read a few lines. Was there content in those lines? (He actually uses any one line, but I find that often that's not sufficient IMHO.) If those lines told you something - if they had real content - then it's probably a useful book.

This doesn't help with code samples of course.
 

g_r_o_b

Wise, Aged Ars Veteran
186
I have found very few computer books worthwhile. I have always been more of a big picture person. If I see an example I want to know why they chose to do things the way they did. Why they chose the data structures they did. How things work on the larger scale. I could care less about seeing a for loop described for the billionth time. I think any one of us could go out right now and right an intro book on C, C++, C#, well any language and get it published. Hell, most the books out there fill up half their pages with stuff copied directly out of the standards. Give me a break.
 

BitPoet

Ars Legatus Legionis
21,805
Moderator
Originally posted by g_r_o_b:
I think any one of us could go out right now and right an intro book on C, C++, C#, well any language and get it published.

That is a large part of the problem.

Usually, the most useful books on a particular subject have been the thinnest ones. (Example: K&R). Most of the larger books I've got on my shelf, I never use, and for the most part, inherited from others. Only a few of the truly large tomes I actualy find useful (for example, an old version of Win32 Programming. In many ways, it's better than an up-to-date version of MSDN, simply because it has _less_ information.

Most of my unix books, are 'bibles' of whatever the subject is, and have been recommended by others (Comer, Stephens' TCP/IP books, for example
 
I usually stay away from anything that isn't considered a "bible" in its field.

Also, stay away from "The Java Bible" which is really rather bad. It mentions a lot of things, but then doesn't give you any detail about how to use them. What is the point of wasting space on those things if you can't figure out how do use what they're referring to?
 
On my web site I have detailed written reviews of about twenty Python programming books I have read (yes, I know I need to get a life;-))). There are also a few other programming books reviewed there, and a list of 23 Pythonic online tutorial links +++

Yes, you will find my disappointment with Python and Tkinter programming to equal yours. The book "looks" good, judging by the cover; but it just isn't...

http://www.awaretek.com/plf.html

Python City
P>S> If anyoen wants to contribute otehr Python book reviews,or programming book reviews, I'm open ot it ;-))))
 
Yes, you will find my disappointment with Python and Tkinter programming to equal yours. The book "looks" good, judging by the cover; but it just isn't...

You are much too easy on it. It's not above your head. It's a poorly written and edited book. Unfortunately, it's the only book that covers the subject in detail.

One thing I do to review a programming book is to pick an example program or two at random and input them as a quality check.

I'm really waiting to see what Thinking in Python holds.

q
 

stickboy

Ars Tribunus Angusticlavius
6,218
Subscriptor
Originally posted by Minstrel:
I usually stay away from anything that isn't considered a "bible" in its field.

Also, stay away from "The Java Bible" which is really rather bad.
Well, I didn't mean self-appointed "bible" books (ie, ones that have "Bible" in the title). I'd certainly be wary of any book with such a presumptuous name.
 

Tristram

Ars Scholae Palatinae
1,428
Subscriptor
I don't know. I have seen some glaring errors in very good books.

I will say that I tend to be picky about the books, and have recently confined my purchases to AWL and O'Reilly Books, with a few exceptions (PTR makes good C books). I also stick to authors I trust, either from previous books, magazine articles, or people I know (not many of them, but I went to school with couple of guys who wrote books).

I really don't like the Sun Java books.

I have a couple of Wrox books, and I don't really care for them.

Anything that says Primer (though Lippman's C++ Primer is palatable).

I really dislike the presentation of the Deitl & Deitl books ('How to Program ...'), though the information is not blatantly wrong.
 

Watcherq

Ars Scholae Palatinae
1,340
I categorize books into the following groups: evergreen/brillant, good/should buy, decent, poor and crap (categories A to E). Rarely are books in A, most are in D or E. Eg, I second the Deit & Deit books. The layout, typefacing is pretty poor but the content is fine. I would put them in C or D as I have too much to read and usually scan the content. With poor layout, etc, I can't do it. In contrast, O'Reilly books are pretty pleasent to the eye (I have only one ;) ). I can't stand the Wrox "a doggy bagful of author" approach. Contents that overlap, not flowing, etc plus being too think puts them in D or E category.

What are in the A category? Donald Knuth's TAOCP, Intro to Algo by Cormen, et al, the TCP/IP books by the late Stevens. These are keepers even though I have over 1k books at home :).
 
Quality, I have corresponded with the author of Python and Tkinter Programming on comp.lang.python, whre both he and I commonly hangout. Thus, IO was perhaps too gentle with that review of his book...but I think a reader of that review of mine, espeacially comapred to other Python book reviews I have done, will get the ifdea to not buy the book ;-))))

Ron Stephensw
Python City
http://www.awaretek.com/plf.html
 

BitPoet

Ars Legatus Legionis
21,805
Moderator
One thing that's helped me buying books has been a good bookstore. There's a place called SoftPro near me, and they do just computer books, and they know what they're doing. I remember looking for a book on ATL (IIRC) after it had just been released. There were about 10 books on the subject, and I got pointed to the one that was any good. (There were a couple from WROX, and the like, which I wrote off immediately) For the ~3mos I used it, the book was valuable. Now it sits at home collecting dust, cause I don't program anything for windows anymore
 
Is it just me, or have the O'Reilly books been slipping. The Quick Reference books I've picked up recently were not that good. They just don't seem to give you enough information on how do important things. (For instance the section on Update in their SQL reference doesn't show you how to write an update that updates more than one row with more than one value.) O'Reilly has also been reluctant to do books on Windows' technologies. Their first ones were like "Windows 95 problems".
 
Originally posted by Jebediah:
Is it just me, or have the O'Reilly books been slipping. The Quick Reference books I've picked up recently were not that good. They just don't seem to give you enough information on how do important things. (For instance the section on Update in their SQL reference doesn't show you how to write an update that updates more than one row with more than one value.) O'Reilly has also been reluctant to do books on Windows' technologies. Their first ones were like "Windows 95 problems".

I've a couple of dud O'Reilly books, but they're not new ones. The Pthreads book really isn't that much more helpful than the standard pthread manual pages and a small clue about concurrent design; the old Managing NFS/NIS (has there ever been a new edition?) wasn't especially helpful when it was new, and now of course has the additional sin of not being up to date.

On the other hand, O'Reilly's worst are on par with the best of some of their competitors.
 

Prototyped

Ars Legatus Legionis
11,126
Originally posted by jbode:
IME, if the book is more than 3" thick, has a bright, colorful cover, and smatters lots of little icons throughout the text, it isn't worth a damn. Thin books with dense text and boring covers tend to be the best. K&R2 is the canonical example of a good "small" book.

Ever hear of that proverb, "never judge a book by its cover?"

It applies in a sense close to literal in this case. :)
 

EgalitarianBovine

Ars Tribunus Angusticlavius
8,086
Size of books is not a good way to differentiate between good and bad. George F. Luger's AI book is about 3inches thick, colorful. It's also dense as hell. It doesn't spend much time with verbose sentences or repeating the same thing 3 or 4 times in different ways.

Or, as somebody else mentioned, the CLRS (don't forget the S ;) ) book.

-EB
 
Status
Not open for further replies.