An excellent read for if you're dealing with a large legacy code base that mainly consists of spaghetti.

https://leanpub.com/mlaphp