Snakes are just out eating mice and voles and such, and just want to be left alone. No reason to do them any harm. They can only strike about half their body length, so you can get closer to them than most of us feel comfortable with. The real trick is stretching them out so you can tell how long their body is.
The rattlesnakes around here give you plenty of warning. It's kind of interesting to see one.