I live on a small homestead out on a mesa in NM, and I rely on one of the PetSafe fence setups. It has a base station that I keep plugged into a socket in the kitchen, and a second collar you put on the dog when you need containment. It gives her about a 100' radius, which isn't a ton, but it keeps her within line-of-sight at all times so I can make sure she's not getting eaten/humped by a coyote or something - or wandering onto the home shooting range while I'm using it.
After the first few weeks she learned how far she can go before the collar gives a warning beep, and now she tends to respect that even without the collar on. I seldom use it anymore unless I'm too busy to pay attention to what she's doing, like when I'm casting slugs or working on the roof. This has been our routine for about six months now.
I consider it well worth the investment, even for occasional use.