I set out this morning to refactor some old code of mine. Basically, I wanted to clean it up and fix some bugs. Four hours later, I had given up on refactoring it and rewrote the application to use the GTK+ toolkit instead of Xt. The application is small (it allows you to access your X clipboard from the commandline), but I'm still bothered by the fact that I started out wanting to refactor, and being humbled by not being able to figure out Selections in Xt (I think this is how Tim O'Reilly originally made his money ;).