I sometimes find myself talking to myself to work through a problem. It annoys me when I was accused of being mad. But what needs to be realized that this is a great and valid way to work through an issue when you don’t have access to someone else.
Often the process of talking through a problem causes a solution to present itself. The Pragmatic Programmers recommend it here via wikipedia. I highly recommend their book The Pragmatic Programmer which I’ve had on my bookshelf since 2003.
Talk to someone else when you can that works well. When you can’t, have a chat to that Rubber Ducky and explain to anyone who questions what you are doing. Involve them if they are interested.
Remember you’re not mad – your being very resourceful. In fact apply this to any problem solving activity.