Data Science - Machine Learning vs Rules Based Systems

machine learning
What are the alternatives to a purely Rules-based system? Machine learning algorithms can actually help build rules on the fly "IF* we can show the algorithms good vs bad in the data or data that you can classify into class A, B, C, D etc., Not only that, as we find more and more data, it is easy to