3 ms·
> Plus I find when a book has typos (either in the text or in the code), that just makes me engage with it a little bit more. Really? I wasted almost an hour d
by silentbicycle 16y ago
> Plus I find when a book has typos (either in the text or in the code), that just makes me engage with it a little bit more.
Really? I wasted almost an hour double-checking my code due to a typo in an algorithm in _Programming Collective Intelligence_ (pg. 35, should end in "return num/den", not "return 1.0-num/den".) That's just sloppy. I added it to the errata page (http://oreilly.com/catalog/errataunconfirmed.csp?isbn=9780596529321 http://oreilly.com/catalog/errataunconfirmed.csp?isbn=978059...).
It makes me feel that while the author's explanations are pretty good, the code samples are rather dodgy. I've switched to looking up the relevant mathematical formulas and converting them to code myself.
- aaronblohowiak 16y agothat book is full of errors =/ I'm not a regular python user, but I've also heard that the code contained within the book is not very "pythonic" and is really meant as a pseudocode. still no excuse for it to be incorrect. when a book has typos, it makes me want to throw it in the fire.
- silentbicycle 16y agoI'm a bit rusty on subtleties of standard Python style these days (I mostly switched to Lua around Python 2.5 or so), but I got the same impression. Still, the conceptual explanations in the book are pretty good.
- ludicast 16y agoSome typos are okay, but in some cases there obviously can be too many.
- silentbicycle 16y agoWhile mistaking e.g. "there" / "their" / "they're" annoys me, I acknowledge that I'm stubborn about that stuff. Messing up details in a big formula or algorithm that people are going to use as a reference is just sloppy, though. I really appreciate authors who write in a (possibly personal and ad hoc) literate programming system that automatically extracts and tests all code samples. I don't understand your "makes me engage with it a little bit more" reaction, though. I really don't. Could you explain?