如果清晰划分了不同代码的职责,验证也容易维护。
Validation is also more maintainable when you clearly specify the responsibility of each piece of code.
基于所使用的数据库,这是惟一需要编写不同代码的地方。
This is the only place you need to write different code based on which database you're using.
bug补丁或改进常常涉及多个文件和每个文件中的不同代码段。
Oftentimes, a bug fix or enhancement spans multiple files and various sections of code in each file.
And in particular, I can then ask the following question, which is, what's different between those two pieces of code?
是有个明显的模式的,我特别要问如下的问题,这两块代码的,不同之处在哪儿?
Code is right here. And all it's doing is when I'm getting into the different places I'm simply printing out information about where I am. What I want you to see palindrome is notice what happened here.
代码就在这儿,它的作用是当我运行到不同地方时,就输出我所在方位的信息,我想让你们看的就是注意这儿发生了什么,好了我调用了一个。
So if you're coming from prior background, your code might work a little differently on a different system if you don't use those flags.
如果你来自一个先前的背景,如果你们没有使用这个版本标志的话,在一个不同的系统中,你的代码可能运行地不太一样。
应用推荐