I talk to myself all the time when working through programming problems. (And even some other types of problems.) I remember being told at a very young age that this was some kind of sign of insanity and should be avoided. I ignored that advice and have been reaping the rewards ever since.