I'm surprised there aren't many books like that already in English. It was a Russian children's book that spiked my interest in programming when I was a kid. I didn't even have a computer, and neither did my school at that point. I don't remember the details too well, but it was basically about some boy in some imaginary land learning about algorithms, computer viruses, etc. in a really fun way. There were tons of very clear analogies, like algorithm and a cooking recipe.