It differs from a program when concurrent programming techniques are used for coding the program. In such a case many processes can execute a program or a part of a program. Program.
在应用并行编码技术时,许多进程可以执行同一程序或其一部分,这时进程与程序是不同的。
For example, if you simply parse all of the source files for a program, you can ensure that the source code adheres to a predefined coding standard.
举例来说,如果您简单地对所有源文件执行语法分析程序,那么您就可以确保源代码遵守预定义的编码标准。
One of the most common coding missteps I see as a consultant is the practice of validating and rejecting rows in the program instead of in DB2.
作为咨询人员,我发现主要的公共编码失误之一是在程序中,而不是DB 2中验证并拒绝行。
Why not write the program in a way where you figure out dynamically when the program is run how much memory you need rather than hard coding in two with or within that constant.
为什么不写一个可以动态的方式写那个程序,程序可以动态分配内存,而不是用常量硬编码两个值。
That goes back to that idea of sort of discipline coding. It's easy to have assumptions about what you think are going to come into the program when you writ it. If you really know what they are use them as search, but if you think there's going to be some flexibility, you want to prevent the user getting trapped in a bad spot, and exceptions as a consequence are a good thing to use.
这又回到了规范编码的想法上来了,在你写代码的时候考虑,什么会进入你的代码的思考是简单的,如果你真的知道,他们是用他们来做搜索的,而你希望有一定的灵活性,你想要阻止用户,陷入一个艰难的境地,那么异常是非常实用的。
应用推荐