... is look to see if someone else has already written one.

A lot of times I find one, but it's crap. Oh well. The few times I do find one that works well, I've saved the time it would take to write my own.