Most software books describe a narrow, ideal subset of some problem. The entropy of real systems is orders of magnitude worse. You are often solving bad decisions made by humans -including yourself-, and considering tradeoffs, as opposed to finding a textbook solution to a problem.