Some bachelor's degrees, such as a computer science major, will earn more at the beginning of their career and incur less student debt, making it easier to pay off their loans quickly.