It isn't a proper book, but Eliezer Yudkowsky's Harry Potter and the Methods of Rationality was incredible. Don't judge it by the fact that it is a fanfic.
Still, I found it enjoyable and worth my time. Even though I thought Harry's portrayal was pretty uneven (swinging between "scientist/genius in an irrational world" and "arrogant prick demigod").
I liked Drako's additional depth far better than Rowling's one dimensional jerk.
http://www.elsewhere.org/rationality/
(rehash of my previous comment: http://news.ycombinator.com/item?id=3231266 )