Bad surface finish

What’s the best to avoid bad surface finishes ?