每个试验中还存在代码测试路径的问题。
There’s also the issue of testing code paths for each experiment.
在清单5中,使用此解析器的代码还使用了新的前缀。
In Listing 5, the code using this resolver USES the new prefix.
当上面提到的这些问题都解决了的时候,你显然还希望代码不要有多余的部分。
Once all of that is out of the way, you obviously don't want more lines of code than you need.
And so you'll learn over time both by seeing and by doing that there are generally some good ways, some okay ways, and some bad ways of actually writing code.
久而久之,你们将通过看和实践来学习到,这里通常有很好的方法,还行的方法,很烂的方法来编写代码。
If you can read the code a year later, even code you wrote yourself, it's a good sign that you put good comments in, right?
如果你还能读懂1年前的代码,就算是你自己写的代码,这也说明了你放进去的注释,已经非常好了,对不对?
Again, I want you to start seeing how to map the characteristics of the code- the characteristics of the algorithm, let's not call it the code-- to the complexity.
是算法中的那些特性,我们还是别说代码了,转化为复杂度-,我一会儿还会再讲点儿这个的,但是我们再看一个例子。
应用推荐