If there was a bear in your way ... would you shoot it too?
Not to get all Sierra Club/Green Peace on you, but at some point humans need to realize that we are all sharing this planet and need to allow each other to take some space. Seeing a snake, frog, coyote, deer, or any other wildlife is always ALWAYS a thrill to me. That is part of what I enjoy about being outdoors.
Now, if that snake is in your house, that's a safety issue, but on the trail ...
If you can't just walk around it then I like the idea of tossing some dirt or small stones to encourage the snake to find another place to sun. No harm done.