清单10提供了意大利面条式代码的示例。
您可以控制通过复选框中所示的隐式代码合同图3 。
You control implicit Code Contracts through the checkboxes shown in Figure 3 .
请注意启用隐式代码合同可能充斥大量消息,警告您输出窗口。
Note that enabling implicit Code Contracts may flood your output window with a ton of messages and warnings.
检索数据的主要方法是通过称为视图的mapreduce式代码。
The primary way data is retrieved is through MapReduce-style code called views.
当在大型应用程序中使用回调函数,就会导致编写出很难阅读的意大利面式代码。
which, when used on a larger scale, can lead to hard to read spaghetti code.
我们去年做的,实际上更有意思,我们给学生的不是一块白板,而是一些分布式代码。
Sudoku And then Sudoku we did last year where it actually becomes a little more interesting where we start providing students not with a blank slate, but with some distribution code.
使用这一技术,您就可以在无需使用任何程序性结构或者嵌入式代码的情况下,执行复杂的数据库查询。
Using this technology, you can perform complex database queries without the use of any programmatic constructs or embedded code.
正如您可以通过上述步骤看到的那样,TDD是一种迭代流程,您可以依靠在增量式代码更改之后允许JUnit测试用例。
As you can see from the steps described above, TDD is an iterative process and you can rely on running the JUnit test case after incremental code changes.
一般情况下,将嵌入式代码块用于复杂的编程逻辑并不是最佳做法,因为当页中的代码与标记混合时,很难进行调试和维护。
In general, using embedded code blocks for complex programming logic is not a best practice, because when the code is mixed on the page with markup, it can be difficult to debug and maintain.
这导致了许多所谓的“意大利面条式代码(spaghetti code)”,意味着许多从未在浏览器上执行过的代码被附带到浏览器。
This causes a lot of spaghetti code and implies that there will be a lot of code shipped to the browser that is never executed on the browser.
新舞台上演了《反代码》的首映式。
该规则说明告诉您,显式静态构造函数会导致代码性能变差。
The rule description tells you that an explicit static constructor results in code that performs worse.
实施点可以作为流程的显式步骤或代码中的指定位置来实现。
An enforcement point can be implemented as an explicit step in a process or a specific location in the code.
第二,实际性:对于程序员来说,计划式编程方式构建了目标代码的抽象概念。
The second is practical: to programmers, the intentional method constitutes an "abstraction" of the underlying target code.
为什么虽然源代码没有显式声明所有接口,但是MSDN还是把所有的接口都列出来了呢?
Why does MSDN have the full interface list but the real source code does not?
函数式思维不仅针对您的代码,还包括您思考测试的方式。
Thinking functionally extends not just to your code, but to the way you think about testing it as well.
Sass的一个关键特性是缩进式的语法,这种语法可以产生柱式外观的代码。
One of the key features of Sass is its indentation-based syntax, which gives you curly-brace and semi-column free code.
与清单1中的示例不同,由于有宣告式事务划分,这段组件代码中没有事务管理代码。
Unlike the example in Listing 1, with declarative transaction demarcation there is no transaction management code in the component methods.
由于这是嵌入式应用程序,因此这段代码还负责创建和初始化嵌入式数据库本身。
Because this is an embedded application, this code is also responsible for creating and initializing the embedded database itself.
如果找到搜索字符串,则所得结果是一个从1到输入字符串实际长度之间的一个数字,使用显式指定的代码单元来表示。
If string to be searched is found, the result is a number from 1 to the actual length of input string, expressed in the code units that are explicitly specified.
这不仅使开发人员不必在代码中显式地释放对象,还可以减少内存泄漏的风险。
This not only frees the developer from responsibility for explicitly releasing objects in code, but also reduces the risk of memory leakage.
为了避免这一点,您必须显式地向代码添加字符串长度检查。
To avoid this, you must explicitly add string length checks to the code.
全生命周期覆盖,从查看业务企业到执行代码嵌入式软件。
Full lifecycle coverage, from envisioning the business enterprise to implementing hand-coded embedded software.
这使一些设计人员去追求一些隐式关联或会话创建的技术,这些技术不要求客户端应用程序代码显式地参与。
This has caused some to pursue techniques for implicit correlation or session creation that do not require the client application code to participate explicitly.
相关内容包括,以“函数式”方式来编写代码将会涉及设计、权衡、不同的可重用构建模块、以及一些其他见解。
As I'll illustrate, writing code in a "functional" manner touches on design, trade-offs, different reusable building blocks, and a host of other insights.
JDBC的具体实现是被隐式加载的,而且源代码很少直接引用这些具体类。
JDBC concrete implementations are loaded implicitly, and source code rarely references these concrete classes directly.
当使用函数式语言编写代码时,您会以不同的方式思考问题的解决方案。
When you code in a functional language, you think about solutions to problems differently.
AOP或者说面向方面编程支持开发人员将代码段“织入”到对象和方法中,而不需要显式地将代码放入到类的源代码中。
AOP or Aspect Oriented Programming allows developers to "weave" code fragments through their object and methods without explicitly placing the code in the class's source.
在提供者代码中必须显式地处理异常。
This is something which must be handled in the provider code explicitly.
然后,使用过程体中的显式错误处理代码进行错误处理。
Explicit error-handling code in the body of the procedure is then used to do the error processing.
应用推荐