What creates "bad diesel" fuel ?
How the fuel is handled after it is made determines whether you engine gets "bad diesel" fuel. i don't believe the refineries make a run of "bad diesel" and then market it. Some of the fuel problems can be caused by the distributor who stores the fuel, some can be caused by the people who sell you the fuel, and some of it caused by the way you, the end user, handles the fuel.
You can't do much about the distributor or fuel supplier handles fuel except to vote with your dollars. If you get a load of questionable fuel, call your supplier and tell him. They want your business so they'll either make it right or you can find another supplier.
The only fuel problem I ever encountered was on a tractor that I bought. I had just brought it to our Montana ranch from New Mexico and before I got it off the trailer, the temperature dropped below freezing. I drove it out to feed the cows and it ran down on me. I had ice in the water separator and in the fuel filter. I used a heat gun to thaw the filter and water separator out and drained the water out. I thought that was the fix. I drove out again and had a run down. Once again, water in separator and the filter have frozen. I suctioned out the water from the bottom of the tank and I removed about a quart of water. I knew I didn't get it all but I could not get any more out of the tank. Before starting, there after, I drained the water separator and the fuel filter before every start into a clear glass jar. I could see the water that these devices trapped. I treated the fuel with PS White and continued this routine until I had no more water in the drainage. No more problems. I don't know whether the previous owner had a supply problem or had a "wet" storage tank. But I never had a problem again. I check my storage tanks every year and treat the fuel with Power Service. (It's not my intention to plug Power Service. It is just what I use and it works for me in my equipment management system.) I have a filter on my supply hose. I pay attention to make sure that I have winter diesel in the cold months and PS White helps reduce the pour point and helps any water to accrete on the fuel filter and drop to the bottom to be drained off.
I try to keep my tractor tanks full to minimize condensation and I buy my fuel from a service station that sells a lot of red dye diesel.
You folks who live in humid climates need to really manage your fuel to minimize condensation. If you have bacteria (it's not "algae" - algae is a plant that requires sunlight which is in short supply in a fuel tank) it's because you have water in your tanks because the bacteria live in the water/fuel interface and eat the fuel and leave you with sludge to clog the fuel delivery system. There are biocides you can use to help control the bacterial contamination because you can't stop condensation, but you can minimize it. I'm fortunate to live in a drier climate where I don't have serious condensation issues.
Opinions are like belly button - everybody has one. This is mine on What creates "bad diesel" fuel.