您应该对成员函数向您掷出的所有异常编制文档,以便其它程序员知道他们的代码将需要捕捉什么。
You should document any and all exceptions that a member function throws at you so that other programmers know what their code will need to catch.
这样就可以使用这种格式的一个小子集,使数据具有更强的可互操作性,而且其他程序员也更熟悉这些标准格式,它们的文档也更完善。
Then, use a small subset of that format, to make your data more interoperable with other systems down the road, as well as more familiar to other programmers, and better documented.
虽然这确实需要一些XML的基础知识(理解元素是什么以及文档的基本结构),但还是对程序员抽象了解析的细节。
While this does require some basic knowledge of XML -- understanding what an element is and the basic structure of the document -- it still abstracts details about parsing from the programmer.
程序员只需简单地指定他们想要对XML文档的适当部分做出的更改。
Programmers simply specify the changes they would like to make to appropriate portions of XML documents.
作为一名关系数据库程序员,我的首选是使用关系数据库系统保存这些XML文档。
As a Relational Database programmer, my first choice was to use a Relational Database System to save these XML documents.
我猜想处理XML文档的所有程序员中有80%真正需要的只是一种提取数据并将它们作为结构化的数据容易地进行操作的方法。
I would guess that what 80% of all the programmers who deal with XML documents really want is just a way to grab the data and easily manipulate it as structured data.
XSLT程序员总是面临的一个问题是,应该如何处理多个文档?
A recurring question from XSLT programmers is how should you deal with multiple documents?
它使程序员能够访问以节点树的形式存储在XML文档中的数据。
It enables a programmer to access data stored in an XML document as a tree of nodes.
最根本的改变是模型不再只作为文档供程序员阅读,它们可以直接用来驱动软件开发。
The essential change is that models are no longer used only as mere documentation for programmers, but can now directly be used to drive software development.
通过满足上述要求,这个框架允许程序员将多个XML文档读入内存(解组),修改DOM,然后将更改保存回一个XML文档(编组)。
By satisfying the requirements above, the framework allows programmers to read XML documents in (unmarshalling), modify the DOM, and save changes back to an XML document (marshalling).
优秀的程序员习惯将代码保持得简短、简单和具有良好的文档记录,以便使其可维护。
Good programmers make it a habit to keep code short, simple, and well-documented so that it's maintainable.
该项目有130多个贡献者(指那些提交代码或文档的人),在所有的2,800次提交中,大约有三分之一是由项目核心团队之外的程序员提交的。
The project has over 130 contributors (people who have submitted code or documentation), and of the 2,800 commits since launch almost one third were contributed by programmers outside the core team.
直到最近,程序员通过编程创建XML文档还只有两种选择。
Until recently, programmers had only two choices when creating XML documents programmatically.
对于第一种情况,程序员完全负责保证结果文档是格式正规的。
In the first case, the programmer is fully responsible for ensuring that the resulting document is well formed.
正如使用SAX一样,REXML没有向应用程序程序员提供来自XML文档的缺省数据结构。
As with SAX, REXML gives the application programmer no default data structures from the XML document.
此条件最适合于文档中心流,而“面向程序员”的语言(如需要循环的WS - BPEL)可更好地支持集成中心流程。
This condition is ideal for document centric flows, whereas integration centric processes are better supported by a "programmer-oriented" language such as WS-BPEL, which requires loops.
程序员需要在使用简洁的API所开发出来的预制组件的库,最佳实践的文档和代码示例之间取得均衡。
Programmers want to leverage deep libraries of prebuilt components complete with clean APIs, documentation of best practices, and code samples.
程序员可以在以下场合使用这种文档。
Programmers can make use of this document in following situations.
实际上,在大多数由程序员(而不是XML开发人员或数据管理员)编写的文档中,往往使用驼峰式(camel - case)命名法,比如firstName。
In fact, most of the documents that do use camel-case naming, like firstName, are authored by programmers, rather than XML-centric developers or data managers.
对于任何一个Perl程序员,Sample样本模块及其文档都是非常棒的工具。
The Sample module and its documentation are wonderful tools for any Perl programmer at Sample.
对于Zero的RESTful资源脚本,好的文档不仅能够帮助您记住代码如何工作,还能帮助客户端程序员创建并测试其客户端代码。
When it comes to Zero's RESTful resource scripts, good documentation not only helps you remember how your code works, it can help client-side programmers create and test their client code.
在下一个“可爱的Python”专栏中,我们将进一步研究xml .dom模块,它可能是Python程序员用来处理xml文档的功能最强大的工具。
In the next "Charming Python" column, we'll take a closer look at the xml.dom module, probably the most powerful tool available to a Python programmer for working with XML documents.
应用程序员使用的xmllib可以覆盖xmlparser类,并提供处理文档元素(如特定或类属标记,或字符实体)的方法。
The xmllib works by the application programmer overriding the class XMLParser, and providing methods to handle document elements such as specific or generic tags, or character entities.
使用XPath时,DOM程序员还有一个优势,即在应用任何XPath表达式之前实际使用DOM获得对XML文档的访问。
Another advantage that DOM programmers have when working with XPath is that they actually use the DOM to get access to an XML document, before applying any XPath expressions.
SQL程序员会发现,将XQueries嵌入到SELECT列表中以便将XML文档的片段提取(或投影)到结果集是很方便的。
SQL programmers may find it convenient to incorporate XQueries into their SELECT lists to extract (or project) fragments of XML documents into their result sets.
熟悉Firefox的程序员都知道Firefox的安全系统不允许从来自其他地方的文档加载本地文件。
Programmers familiar with Firefox will remember that this loading of local files from a document retrieved elsewhere is not permitted by Firefox's security systems.
通过使用dtd2s ql和xml2s ql,程序员可以自动将xml文档的内容移到sql数据库中(以及稍后检索出信息)。
By using dtd2sql and xml2sql, programmers can automatically move the contents of XML documents into SQL databases (and get the information back out later).
在创建时——无论是动态创建还是由程序员创建——具体节点类的形式为_ XO_tagname(其中是在对象化的XML文档中出现的标记)。
Upon creation — whether created dynamically or by a programmer — concrete node classes have the form _xo_tagname (where is a tag that occurs in the objectified XML document).
发出update语句的程序员需要指定完整的文档(而不只是他们想要更改的元素)。
Programmers issuing UPDATE statements need to specify the full document (not just the elements they want to change).
对程序员来说,一个很大的好处是可以在文档中包含内容章节,而不需要重新编码标题层次。
One big advantage for programmers is that they can include sections of content in a document without the need to renumber heading levels.
应用推荐