Atomistic Insights Into Material Chemistry: From First Principles To Machine Learning