Hacker News new | ask | show | jobs
by chrismorgan 4923 days ago
This has lots of incorrect (syntactically or semantically) and bad (coding-style-wise) code. I'm afraid there's no way I am going to recommend it to anyone.

As some examples, the first two pages that I looked at:

http://www.pythonforbeginners.com/dictionary/:

- variable shadowing (e.g. naming a list instance `list` and a dict instance `dict`)

- Syntax errors (e.g. ``dict.items.()``)

- Teaching bad methods of iteration (e.g. ``for key in dict: print dict[key]`` rather than ``for value in dict.iteritems(): print value``)

- Also disappointing: no mention of the typically-more-efficient iter* or view* methods.

http://www.pythonforbeginners.com/web-scraping-with-python/s...:

- The written word fails me utterly. Just consider the last example, which is the worst. Just look at it. (Quite apart from some of the code being missing!) Ugh!