News for hackers. Stuff that matters.
Re:SICP is Under Attack by MostAwesomeDude on Thursday August 04, 2011 @12:43AM (#2844596)
Hi! As a member of the Python community, could you please pick a better textbook than Dive into Python? Think Python is a far better book, off the top of my head, but nearly anything's better than DiP for people not acquainted with the language. (http://greenteapress.com/thinkpython/)
Re:SICP is Under Attack by egor83 on Thursday August 04, 2011 @01:39AM (#2844778)
Here's a Google Wave containing list of problems found in DiP: https://wave.google.com/wave/waveref/googlewave.com/w+8KfvUG...
Re:SICP is Under Attack by scott_s on Thursday August 04, 2011 @10:36AM (#2846138)
Some of those are problems, but many of them are "I would present this material differently."
Re:SICP is Under Attack by MostAwesomeDude on Thursday August 04, 2011 @05:09PM (#2847782)
The factual inaccuracies in the Strings chapter, covering encodings and Unicode, are horrific enough. Confusing UCS-4 and UTF-32, getting historical orderings wrong, completely forgetting to mention Latin-1, and worst, failing to directly outline the connection between encoded streams of bytes, and Unicode strings, in clear and direct language.

Also, the horrific RE abuse at the beginning of Chapter 6 is a remarkable standalone example of Doin' It Wrong:

  import re

  def plural(noun):          
    if re.search('[sxz]$', noun):            
        return re.sub('$', 'es', noun)        
    elif re.search('[^aeioudgkprt]h$', noun):
        return re.sub('$', 'es', noun)      
    elif re.search('[^aeiou]y$', noun):      
        return re.sub('y$', 'ies', noun)    
    else:
        return noun + 's'