《程序员修炼之道-从小工到专家》2(“The cultivation of programmers – from small workers to experts” 2)

今天又拜读这本书,了解了一个观念——如何止步。首先谈谈我自己,在最近的学习中我遇到最大的一个瓶颈:解决一个问题时没有理清架构就开始编写代码,每写一步就想如何写的更加完美,写着写着后面就不好与前面连接,然后无限循环的修修补补,浪费了许多时间。今天偶然读到了这个部分,恰到好处。作者这么说到,他将编程比喻成绘画,当你绘画细节时,你总是退后一步,用批判的眼光审视你的作品,再在绘画的细节上无限的叠加一层又一层,就像在程序中过度的精益求精导致程序的毁坏。它也许不完美,但它不可能完美。学会及时止步特别重要!

————————

Today, I read this book again and learned a concept – how to stop. First of all, let’s talk about myself. In my recent study, I encountered the biggest bottleneck: when solving a problem, I began to write code without clarifying the architecture. Every step I wrote was to think about how to write more perfectly. When I wrote, it was difficult to connect with the front, and then I repaired it in an infinite cycle, wasting a lot of time. I happened to read this part today. It’s just right. The author said that he compared programming to painting. When you paint details, you always step back, look at your work with a critical eye, and then superimpose infinite layers on the details of painting, just like excessive excellence in the program leads to the destruction of the program. It may not be perfect, but it can’t be perfect. Learning to stop in time is particularly important!