This chapter discusses how code is written and consists of three parts: object calisthenics, coding styles, and refactoring. This chapter will not concern itself with the design aspects of problem solving. It will purely look at your code’s readability and how easy it is for other software developers to understand your code. Harold Abelson, author of Structure and Interpretation of Computer Programs, famously said, “Programs must be written for people to read, and only incidentally for machines to execute.” And I must agree. Readability is a very important ...
5. Object Calisthenics, Coding Styles, and Refactoring
Get Software Engineering for Absolute Beginners: Your Guide to Creating Software Products now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.