如果您不只想处理代码,但是又想文档化,那么就使用这种模式。
If you want to work not only in the code but also want documentation, use this mode.
不良习惯:根本没有错误处理代码。
问题就是必须处理代码重入。
首先,实际上您已经编写了错误处理代码。
First and foremost, you've got to actually write error handling code.
DI 处理代码解耦有现实的好处。
要想对这个视图进行更改,我必须先处理代码。
Now that I want to make some changes to the views, I need to get my hands on the code.
在属性窗体创建事件处理代码的方法是点击事件标签。
You can create an event handler by using the Events TAB of the Properties window.
清单10显示了针对各种组件的事件处理代码,例如。
Digging deeper, Listing 10 presents the event handling code for various components. For example.
定义一个定制事件后,就可以在事件处理代码中使用它。
Once you define a custom event, you can use it in your event processing code.
这样,我们已经完成了这个示例应用程序的转换处理代码!
And with that we're done with the conversion processing code for the example application!
现在我们已经绑定了输出数据,将添加一些事件处理代码。
Now that we have bound the output data, we will add some action handling code.
处理代码将处理请求,并准备要发送到输出队列的响应消息。
The handling code would process the request and prepare some response message that is posted to an output queue.
在方法返回错误值时,每一个方法调用都要包含错误处理代码。
When methods return error values, every method call is surrounded by error-handling code.
注意,在生产代码中,还需要包括适当的错误处理代码。
Note that in production code you will want to include proper error handling among other things.
由于需要这么多错误处理代码,该代码可能更大,因此更难阅读。
The code would be a lot bigger and therefore harder to read because of all the error-handling code.
然后,使用过程体中的显式错误处理代码进行错误处理。
Explicit error-handling code in the body of the procedure is then used to do the error processing.
RSSReader:该类实现主GUI并包含菜单处理代码。
RSSReader: This class implements the main GUI and includes code for menu handling.
这有助于处理代码的人理解逻辑,也能清楚表明事件允许的出现顺序。
This helps people who work with the code understand it, and it also makes the allowed order of events explicit.
您不再直接处理代码或硬件,而将要考虑系统以及系统之间如何交互。
Instead of working directly with code or hardware, you're going to be thinking about systems and how they interact.
如果您只想处理代码,但是又想文档化,那么就使用这种模式。
If you want to work only in the code but also want documentation, use this mode.
在客户端机器上,distcc将预处理代码发送给服务器机器。
From the client machine, distcc sends the preprocessed code to the server machines.
容器处理事务,因此bean开发人员不需要编写事务处理代码。
The container handles the transactions, so the bean developer doesn't need to write transaction-handling code.
本月,我将为您推荐一种多层面的方法,来处理代码中那些不易预料的缺陷。
This month, I suggest a multifaceted approach to dealing with the less predictable defects in your code.
本文提供了以最佳方式处理代码的指导原则,无论是新应用程序还是已有程序中的。
This article offers a set of guidelines on how to best approach any new code you are writing, whether it be in a new application or an existing one.
向TopType方法中手工添加异常处理代码,保证只能提供可以转化成布尔值的字符串。
Manually add exception handling to the TopType methods to ensure only string values that can be converted to booleans are supplied.
明确回答这个问题是困难的,因为这与团队的组织方式、如何处理代码所有权问题等有很大关系。
It's a difficult question to answer specifically because it has a lot to do with how your team is organized, how you deal with code ownership issues, and so on. However, here are some guidelines.
为此,在本文与此后的文章,我将通过重构以及随之而来的抽象影响来处理代码重用问题。
For this and the next installment, I tackle code reuse via refactoring and the attendant abstraction impact.
NetPBM是一个非常不错的测试用例:它使用了其他一些库,具有各种可移植的数值处理代码。
NetPBM is a wonderful test case: It USES some other libraries and has a broad variety of portable number-crunching code.
JMS的特殊类型的导入和导出,称为JMS绑定,允许用户指定绑定配置并编写自己的数据处理代码。
Special kinds of imports and exports for JMS, called JMS bindings, enable users to specify the binding configuration and write data handling code themselves.
图6给出了与图5相同的错误,但是这一次错误处理代码向用户或程序员更好地说明了究竟发生了什么。
Figure 6 shows the same error as in Figure 5, but this time the error-handling code gives a much better picture of what happened to the user or programmer.
应用推荐