Take a look at this code in Listing 4.
看看清单4中的代码。
So let's look at this code for a second.
那么让我们来看看这个代码吧。
Well just to see what we know what we're doing, let's look at this code here.
我们下一步该去怎么做呢?,好,让我们来看看。
Before I put this all together in Listing 18, you might want to take one last look at the smelly code I started out with, back in Listing 13.
在将这些内容都放入清单18之前,您可能希望返回清单13最后看一眼开始时使用的那段蹩脚的代码。
To further explore this extremely important concept, let's take a look at the increment code from our program
为了进一步探索这个极为重要的概念,让我们看一看程序中进行加一操作的代码
You can, of course, add or change fields as you'd like, but let's take a look at what we have in this code.
您当然可以随心所欲地添加或更改字段,但是首先让我们看一下此代码中的内容。
Now that you've built the custom web service that can handle and return XML payloads, look at a simple code example of how to do this in Listing 9.
现在您已经构建了可以处理和返回xml有效负载的自定义web服务,接下来在清单9中看一下如何实现这一点的一个简单代码示例。
Take a look back at Listings 1, 3, and 4 and notice that all of this code is nested directly within script tags.
再看一看清单1、3和4,注意,所有这些代码都直接嵌套在script标记中。
This is a great starting point, so let's take a look at the XHTML and XForms code (Listing 1).
这是个很好的起点,我们再来看看XHTML和XForms代码(清单1)。
Before diving into code in the next article in this series, let's take a look at the structures of the PermissionSet interface and the configuration class Permissions.
在深入研究本系列文章中下一篇文章中的代码之前,让我们先分析一下PermissionSet接口的结构和配置类Permissions。
This tool enabled us to look at our unit tests. code coverage in two ways: with the coverage Browser or the file-specific coverage Fileview.
这个工具能够使我们浏览我们的单元测试;以两种方法进行代码覆盖测试:使用CoverageBrowser或者指定文件的Coverage Fileview方式。
Take a look at the code in the example application that set this up. The first step is to get an instance of the machine's system tray
请看一下示例应用程序中设置这部分的代码。
For this one I'm only discussing the code generation from Schema, though in Part 2 I'll look at performance for both approaches.
对于本文,我只讨论根据Schema生成代码,但在第2部分,我将研究这两种方法的性能。
In the next article in this series, we look at agents and code that can influence application performance.
在本系列接下来的文章中,我们将考察会影响应用程序性能的代理和代码。
Now look at the code (in Listing 3) that generated this beautiful page, starting with the top of the page.
现在看一下生成这个漂亮页面的代码(见清单3),首先从页面顶端开始。
If you look at the code, this is made up entirely of static methods, so it could have also been written as a series of functions without changing the extension's behavior.
如果仔细看一下此代码,就会发现这完全由静态方法组成,所以它也可以在无需更改扩展行为的情况下作为一系列函数编写。
You may find it useful to look at the agent code to see how it does its database access task, but that goes beyond the scope of this article.
您也许会发现,检查代理代码以确定它如何完成其数据库访问任务会很有用,不过这超出了本文的范围。
When I look at the code now I see how bad this decision was...
当我看了代码之后我发现这是多么错误的一个决定……
This means that while a developer can look at the source code, special permission is needed to actually use it in a production environment.
这意味着一个开发人员可以查看源代码,但如果想用于产品环境那么则需要特别的许可。
To answer this question I decided to look at some of the common idioms that people use in their code all the time.
为了找到问题的答案,我决定去看看人们通常在代码中运用了哪些常见的技巧。
Once this project is created, we can easily look at the code and start to understand the intricacies of the template.
创建了此项目后,我们可以轻松地查看代码并且开始了解错综复杂的模板。
Future columns will look at specific code and tools to aid the transitions; this column addresses the design considerations.
今后的专栏将着眼于帮助进行转换的特定代码和工具;本专栏则侧重于设计注意事项。
Just look at the sample code in this article. You could have easily generated all of the HTML on the server when the page is requested.
通过浏览本文中的示例代码,我们知道在页面被请求时我们可以在服务器上生成所有的HTML。
At this point you can take a look at the sample code which includes the initialization I described earlier, as well as functions to plot single pixels, draw filled rectangles, and render text.
现在我们可以开始来查看样例代码了,它包含了前面介绍的初始化工作,以及处理单个像素、填充矩形和渲染文本的函数。
So let's look at the second example, all right, I keep doing that — this piece of code from here to here gives me a way of now creating a hash table of size 256.
所以让我们来看一下第二个例子,好的,我继续做那件事,这段代码中从这里到这里,是创建一个大小为256的哈希表。
People make really stupid decisions and so as you know in this course with P sets there are three axes that we look at when evaluating your code.
人们做了一个愚蠢的决定,在这个课程上,通过习题集,当执行你的代码的时候,有三个评估方面。
We'll examine these macros and their contents in a moment, but first, take a look at the client code in Listing 11, which uses this test suite.
我们稍后研究这些宏及其内容,但是先看看使用这个测试套件的客户机代码(见 清单11)。
Let's look at an example of how code like this could be exploited.
让我们来看一个怎样利用这种代码的例子。
Let's look at some of the code that you need to add to the macro to accomplish this task.
看看为了完成这个任务您所需要添加到宏的一些代码。
To take a look at the harness code, download this article's sample JAR file from the Resources section.
为了分析这个工具的代码,应从参考资料中下载本文的示例JAR文件。
应用推荐