Now, how can I use code that someone else wrote?
那么,我们怎样才能用别人写的代码呢?
If you were just using plain text to send this data to a server, you might use code that looks something like Listing 1.
如果使用普通文本把这些数据发送到服务器,可以使用清单1所示的代码。
Then use one of our widgets to generate code that you can just copy and paste into your website.
然后使用小工具中的一种来生成代码,这样你可以只复制粘贴进你的网页中。
I used V0.4 to write the article, so, to use this code, you need that version.
我使用了V0.4撰写本文,因此,要使用这段代码,您需要使用这个版本。
This has substantial overhead, but it works on new platforms; use that code until you know the platform well enough to develop a platform-specific implementation, if you even need one.
这会产生大量的开销,不过这在新平台上可以很好地工作;如果需要,请一直使用这些代码,直到您对新平台的了解已经足够开发一个特定于平台的实现为止。
It is very RESTfully designed, so you can use any code that can request data from a URL.
它是基于REST风格设计的,所以您可以使用任何用来从URL请求数据的代码。
You can use the output from this custom code module in the HTTP request that you use for the movie search.
你可以使用来自搜索电影的HTTP请求中的自定义代码模块中的输出结果。
In either case, use the empty code models that you created earlier.
在每一种情况下,都要使用您先前创建的空的代码模型。
For example, system designers could create an internal interface package to utilize third-party billing code but only expose interfaces to those packages that use the billing code.
例如,系统设计师可以创建一个内部接口包来利用第三方记帐代码,但是只对这些使用记帐代码的包公开接口。
Under the BSD license, the company can keep this code proprietary so that company B can't use the same code for their new phone.
在BSD许可下,该公司可以保持其代码的所有权,所以公司b将无法在其新的电话中使用相同的代码。
The idea behind the controller is to provide code that can use XQJ to query and transform the aforementioned XML document.
控制器的目的就是提供能够使用XQJ进行查询的代码,并转换刚才提到的XML文档的格式。
Writing the security code that defines who can access and use the data.
编写安全代码,它将定义有权访问并使用数据的人员。
In this task, we start identifying the code that implements the use cases.
在此任务中,我们开始鉴别实现用例的代码。
This allows you to pass a parallel collection to existing (non-parallel) code bases and potentially use that code as is.
这将允许您传递一个并行集合给现有(非并行)代码库并按原样使用该代码。
In fact, you can use code metrics to easily spot code that might be difficult to maintain.
实际上,可以用代码度量很容易地找出可能难以维护的代码。
The EMF lets us generate a code that will use to create model instances, which we carry through to this generation.
EMF让我们生成了一个代码,您可以使用该代码来创建模型实例,我们可以使用它来完成生成操作。
The second solution is to use a code generator that reads the database schema and writes the code for you.
第二个解决方案是用代码生成器,读取数据库模式,并自动编写代码。
For best results, use a code review tool that gathers metrics automatically so that your critical metrics for process improvement are accurate.
为了得到最好的结果,您要使用能够自动收集代码的代码评审工具,这样用于流程改进的关键代码就是精确的了。
The easiest way to implement DHTML is to first write it in a plain HTML page, without PHP or any server-side language, then use that code as a template for the PHP code to generate the DHTML.
实现DHTML最简便的方法就是首先在平面HTML页面中编写,不使用PHP或任何服务器端语言,随后以该代码作为PHP代码模板来生成DHTML。
This is a code that makes much use of Angle brackets, quotation marks and forward slashes.
这种代码使用许多尖括号、引号和前斜线来编写。
Listing 4 demonstrates code that you might use.
清单4演示了所用的代码。
Add any other code that needs to use personalization content.
添加需要使用个性化内容的任何其它代码。
Use the following code as the body of that method.
将以下代码用作该方法的主体。
Ruby developers can use the code that accompanies this article and tweak it as they see fit.
Ruby开发人员可以使用本文随带的代码并根据需要加以缩减。
For example, if you wanted to find all the title elements in an Atom document, you'd use code like that in Listing 9.
比方说,如果要查询Atom文档中的所有title元素,应使用清单9中所示的代码。
You can use WebSphere's wizards to create code that corresponds roughly to this programming model.
您可以使用WebSphere的向导创建大致符合该编程模型的代码。
It's also easy to forget to use finally when the code that USES the resource doesn't throw checked exceptions.
很容易忘记在使用资源的代码不抛出已检查的异常时使用finally。
They settled on applying the same use policy and code of compliance that they use for email.
它们决定应用与电子邮件所使用的相同的使用策略和遵从性代码。
You are on the right track, that you should maximize your use of the tools to make your job simpler and develop code that maximizes the use of the container to make the code's job simpler.
您在正确的轨道上,也就是您应当最大限度地利用这些工具使得您的工作更简单,最大限度地利用容器使得代码的编写工作更容易。
I often use it to review code that is changing.
我通常会使用它去评审发生改变的代码。
应用推荐