The science behind brewing the perfect cup of joe

Many people all over the world consume at least one cup of coffee every day. So is there a science to brewing the perfect cup of joe?