那么,你什么时候能说你在代码中很好的应用了OOD ?
Now, when can you claim that you have applied good ood in your code?
这样可以很好地把代码与生成的二进制文件分开。
This way, you have a nice separation between your code and the generated binaries.
那么如果我们要想成为很好的代码编写者,首先就必须成为很好的读者。
Then we must become good code readers if we are to become great code writers.
So in other words, if thankful is still false at this point, it means this condition did not work out very well, and so I'm going to do this block of code again.
换句话说,如果thankful在这时候还是false值,这表示这个条件没有实现地很好,所以我将再次去处理这段代码。
Why is this much nice? Well, that's a handy piece of code. Because imagine I've got that now, and I can now store that away in some file name, input dot p y, and import into every one of my procedure functions, pardon me, my files of procedures, because it's a standard way of now giving me the input.
为什么这样很好呢?,这是一段很好用的代码,因为想象下如果我有了这段代码,我能把它用某个文件名保存起来,后缀是。py,导入到所有的处理函数中,抱歉,我的处理文件,因为这是一个标准的输入方法。
应用推荐