In some instances, neighbors will be excited about the prospect of a fence and may want to share the cost. Fencing contractors may offer discounts for multi-home installations, so it pays to inquire with the neighbors for that reason alone.
Homes with pools may need fences as a safety precaution. Be sure they fit the protocol. They may need self-latching/locking gates to prevent entry to the yard.
A fence can be a good investment, but homeowners must take the appropriate legal measures and consider their neighbors before erecting any fences.