refactoring – What is Insider Trading Bad Smell?

I’m Mr. Alarm. My job is to flash red lights and make a terrible noise when something has gone wrong with the system. However, no one likes it when I go off for no good reason. When I do my designer gets yelled at.

My designer has me suppressing a lot of signals. The cpu is too hot! Oh but except when powering up or for brief periods or when it’s accessing GPU… and that’s just the CPU.

My designer has created a situation where I have to know almost everything about the whole system. No one can touch the system now without him.

It seems silly to me. All I want to know is when to go off. I’m real good at flashing lights and making noise. Why do I need to know this other stuff?

That’s insider trading. It’s about knowing too much.