<<Clean Code>> Quotes: 1. Clean Code

Wenzhi Lin
1 min readSep 10, 2017

--

There are two parts to learning craftsmanship: knowledge and work. You must gain the knowledge of principles, patterns, practices, and heuristics that a craftsman knows, and you must also grind that knowledge into your fingers, eye, and gut by working hard and practicing.

Remember that code is really the language in which we ultimately express the requirements.

Writing clean code requires the disciplined use of a myriad little techniques applied through a painstakingly acquired sense of “cleanliness.”

What Is Clean Code?

Bad code tempts the mess to grow!

The upshot is that clean code exhibits close attention to detail.

Clean code is focused. Each function, each class, each module exposes a single-minded attitude that remains entirely undistracted, and unpolluted, by the surrounding details.

Our code should be matter-of-fact as opposed to speculative. It should contain only what is necessary.

In recent years I begin, and nearly end, with Beck’s rules of simple code. In priority order, simple code:

  • Runs all the tests;
  • Contains no duplication;
  • Expresses all the design ideas that are in the system;
  • Minimizes the number of entities such as classes, methods, functions, and the like.

We are Authors

Authors are responsible for communicating well with their readers.

--

--

Wenzhi Lin
Wenzhi Lin

Written by Wenzhi Lin

A climber who enjoys skiing and scuba diving, and writes iOS code during the day. Made in China, evolving in the USA.

No responses yet