完成保龄球招式几天后,我开始意识到我可以把重点放到实际的编码风格以及如何最好地去重构代码上,而不是问题本身。
Having done the Bowling Kata for several days I started to realize that I could concentrate on the actual style of coding and how best to refactor rather than the problem itself.
因此,罗森菲尔德表示,对犯罪意识编码相对来讲比较浅层的。
Thus, Rosenfeld said, encoding of guilty knowledge was relatively shallow.
不要害怕扔掉代码.重构和重新编码是两个非常重要的领域.当你遇到已经不存在的需求,或者你没有意识到你能找到比开始编写的代码更好地解决旧问题和新问题的方案,如果你遵循上面的建议,需要重构的代码已经最小化了.如果你没有遵循上面的建议,你可能需要重新编码.
Many developers solve their problem while they are coding, and there is nothing wrong doing that. As a matter of fact, you can do that and still adhere to the above statement.
应用推荐