I recently started reading the discworld series by Terry Prattchet and I'm really enjoying it. It has just so absurd humor.
Your book reminded me of "Harry Potter and the methods of Rationality", which i read a few years ago. The setup is lously based on Harry Potter, however Harry tries to take a scientific and rational view on magic. It is one of my favourite books.