The previous day’s post on how to write more elegant code included two books, “The Art of Writing Readable Code” and “The Art of Code Neatness.”
I’ve covered the first book briefly in previous articles, but today we’ll focus on the second, “Ways to Clean Code.”
What are the features of the book?
The book, published in 2010 and republished in 2011, has a high score of 9.1 points on Douban.
In the words of the author, reasons to read this book:
One, you’re a programmer and two, you want to be a better programmer. The purpose of this book is to show you how to write high-quality code, top to bottom, bottom to top, inside to out, so that you can understand the difference between good code and bad code and how to go from bad code to good code.
The author explains how to write readable and high-quality code from the basic code naming, function writing, annotation, code format, object data structure, error handling, testing, design and so on.
Main reasons for recommendation
-
In addition to “The Art of Writing Readable Code,” we explore the logic of writing high-quality code in more depth and in more dimensions.
-
It starts from high quality code writing, but goes beyond that, and expounds many software engineering methods and ideas. For example, single accountability principle (SRP), non-repeatability (DRY), etc.
-
There are a lot of “fresh” ideas, correct a lot of “wrong” ideas in daily development, for just engaged in development and senior r & D students are beneficial. If the author thinks the only really good comment is if you try not to write it.
The welfare of time
Mid-Autumn Festival is coming, plan to give a few books “code clean way”, gift rules please move to the public article, participate in the lottery or directly scan code to participate