Coding Horror

programming and human factors

Cleaning Your Display and Keyboard

Let's say, just as a hypothetical, you're sitting at your computer, casually chatting with a fellow programmer. You begin to describe some bit of code, then bring it up on your display to illustrate. You want to highlight some particular part of the code. Perhaps you move the cursor invitingly over the area to bring it to their attention, or gesture towards it with your hand.

What happens next?

When I said there were two types of programmers, here's what I really meant:

  1. Programmers who touch displays with their greasy, disgusting, bacteria-addled fingers.
  2. Programmers who don't.

I am incredibly anal about people not touching my displays. I'm not even going to apologize. If you touch my display, I'll kill you. Displays are for viewing, not touching. Put down your damn sticky bun and go touch your own filthy display. Here's my mental image of everyone who has ever touched my screen:

a baby eating

You know that's you. You know it. You do. And you just can't resist touching my display, can you?

Every time it happens, I replay it in slow motion, desperately trying to insert some part of my body between the toucher and my monitor. But I rarely succeed.

Not everyone considers displays inviolate and untouchable as I do. They should. But keyboards are another matter. They're designed to be touched. And boy, are they ever disgusting. They're literally dirtier than a toilet.

Out of 33 keyboards swabbed, four were regarded as a potential health hazard and one harboured five times more germs than one of the office's toilet seats.

Microbiologist Dr Peter Wilson said a keyboard was often "a reflection of what is in your nose and in your gut".

During the Which? tests in January this year, a microbiologist deemed one of the office's keyboards to be so dirty he ordered it to be removed, quarantined and cleaned.

It had 150 times the recommended limit for bacteria - five times as filthy as a lavatory seat tested at the same time, the research found.

After reading that, I'm not sure I want to touch my own keyboard any more, much less someone else's.

So then, how do we clean our screens and keyboards that are so casually defiled by our coworkers, family, and friends? This is apparently not a big concern for some. I am continually amazed by the horrifying state of many programmer's computer workstation keyboards and monitors. I'm not talking about dust, but utter and total neglect resulting in devices I'm afraid to touch. Given the data, maybe that's a good thing.

Cleaning screens is fairly straightforward.

Most manufacturers recommend basic soap and water -- no harsh detergents -- along with a soft cloth. I've used the Monster ScreenClean kit for a while with good results.

Monster ScreenClean

You don't have to buy a kit, of course, but I definitely recommend some kind of microfiber cloth like the one bundled here. Microfiber is a generic name for any synthetic fiber that's finer than silk, and the stuff is amazing. It works well on all kinds of displays: televisions, computer monitors, laptops -- I even use the kit to clean my glasses.

Cleaning keyboards is a much more challenging task.

Despite what you may have been told, compressed air dusters aren't just for sneaking up behind your unsuspecting coworkers and friends and spraying them in the neck and ears. I mean, yes, that's the ideal use, but it's also quite good at cleaning up computer equipment. Including keyboards. You can remove most of the dust and a substantial amount of the unmentionable gunk that builds up under the keys with a generous application of compressed air.

line of compressed air dusters

Compressed air is a reasonable first line of defense. But it does nothing to actually clean the keyboard. Sure, you could methodically disassemble your keyboard, or if you're hard core enough, even disassemble your laptop's keyboard, and painstakingly clean every part of it. But is all that work really worth it to clean a lousy keyboard? Short of buying a new keyboard every few years, is there a better way?

Maybe. Have you considered putting your keyboard in the dishwasher? It's not as crazy as it sounds; based on the volume of reader feedback to an old BoingBoing post on the topic, I'd say it works. It certainly seemed to work for Austin Matzko.

But lately the years of dirt build-up [on his 10 year old keyboard] have been really disgusting, so I decided to try something I read about a long time ago: cleaning the keyboard in the dishwasher.

keyboard in dishwasher

Everything washed up beautifully and dried out by the next morning; check out the before and after pics. Total time disassembling and reassembling the keyboard was probably five minutes, which is a lot less than you'd spend trying to clean the thing with Q-tips. If that's too much work for you, just stick the whole thing in there, but give it several days to dry out.

Note that Austin removed the circuitry from the keyboard first, while some people stick the whole keyboard in the dishwasher as-is. There is a followup NPR article that toes the keyboard manufacturer party line and advises against doing this, so obviously, try at your own risk. Personally, I can't wait to give it a shot. I'll buy a new keyboard first, just in case something goes horribly wrong -- and because I need a second keyboard to use while the first one dries for a week.

If that's too radical an approach, you can fall back on using the old reliable soap-and-water damp rag to scrub your keyboard clean. There's even a neat Mac utility program, Keyboard Cleaner, which will lock out your keyboard while you're thoroughly wiping it down.

I'm no germophobe, but I like using clean keyboards and displays, and I'd prefer to see other people using clean equipment too. But remember -- just because I can clean my display doesn't mean you should be touching it, Poky McSmudgypants.

Written by Jeff Atwood

Indoor enthusiast. Co-founder of Stack Overflow and Discourse. Disclaimer: I have no idea what I'm talking about. Find me here: https://infosec.exchange/@codinghorror