I'm far from perfect, only the Lord can claim that. I do however pay attention to maintenance items and one of them is battery and ground connections. In 30 years, I've never had an in field issue with corroded battery terminals. Had other issues but never that.
Every morning or before I start my tractors, I do a walk around and a look over. Check the fluids, look under them for leaks, raise the hoods and check for loose belts and look at the staring batteries and check the connections. Takes about a minute per. Weekly, I check tire pressures and look for loose lug nuts. Something I'm in the habit of doing.
If you allow your battery connections to degrade like the picture the op posted up for all to see, you deserve what you get. No excuse for that to ever occur except for lack of preventive maintenance. That don't happen on this farm.