Go提供了一种简单的机制来组织代码:包。
拥有大型代码库的企业所面对的首批问题之一是如何组织代码。
One of the first problems facing an organization with a large code base is how to organize the code.
任何路径你采取异步加载脚本需要您利用回调组织代码执行的顺序。
Any path you take to async script loading is going to require you to leverage callbacks to organize the order that your code is executed.
这将有助于您更好地组织代码,使试图了解代码的其他人更容易维护代码。
This will help better organize your code and make it easier to maintain for anyone else trying to figure it out.
此命名空间范围允许您组织代码并为您提供了创建全局唯一类型的方法。
This namespace scope lets you organize code and gives you a way to create globally unique types.
按领域职责组织代码是最佳实践,在WebFlow2中我们正尽力简化其使用。
Organizing code by domain responsibility is a best practice, and in Web Flow 2 we are trying really hard to make this the easy practice.
注意:本质上一个对象是允许你在同一位置储存数据和设计的组织代码的方法。
Note:Essentially an object is a method of organizing code that allows you to store data and programming in the same location.
组织代码,以对远程虚拟机的MBean服务器的连接进行调用,是一种可行的选择。
Structuring your code to make calls on a connection to a remote VM's MBean server is one choice available to you.
不过,随着程序越来越复杂,递归程序设计能够让程序员以可维护且逻辑一致的方式更好地组织代码。
But as programs become more complex, recursive programming gives the programmer a better way of organizing code in a way that is both maintainable and logically consistent.
这样一来,便可以很自然地组织代码,并将匿名内部函数的概念引入到OpenLaszlo开发当中。
This allows you to group code naturally and brings the concept of anonymous inner functions to OpenLaszlo development.
既然任何编程项目的目标之一是减少用户复杂度,所以最好大幅度缩短代码,或者至少更好地组织代码。
Since one of the goals for any programming project should be the reduction of complexity for the user, it would be nice to dramatically shrink the code, or at least organize it better.
除了代码外,这些组织经常没有或只有很少用于管理文档和模型等开发构件的正式方法。
With the exception of code, these organizations often have little or no formal way to manage development artifacts, such as documents and models.
但对于较复杂的用户输入,其优越性会立即通过组织良好的代码和功能而体现出来。
But for even moderately complex user input, the benefits are immediately visible in the better organization of code and functionality.
此类研究推动我思考如何组织我的代码库以及使其预期在未来能不断增长。
Such explorations have motivated me to think about ways in which my code base might be organized to anticipate future growth.
每个文件都把代码组织到项目中并详细说明该项目依赖于哪些其他项目。
Each file organizes the code into a project and specifies what other projects it depends on.
这个意味着作为迁移工作的一部分很可能必须修改现有的代码组织。
The implication of this is that existing code organization will very likely have to be changed as part of the migration effort.
通常,在您计划如何为被测试应用的特性和行为进行分离和组织测试代码时,您将会使用关注分离这个基本原理。
Typically, you will use the separation of concerns principle when you plan how you will divide and structure your test code for application-under-test features and behaviors.
对于开发组织来说,代码搅动——程序员代码中变更的频率——是可运作的度量。
For the development organization, code churn — the frequency of changes in program source code — would be an operational measure.
如果您希望名称空间发挥双重作用,即避免命名冲突和组织php代码,那么就要更加注意这点了。
This is particularly important when you're using namespaces for the purpose of organizing your PHP code, as well as avoiding naming collisions.
以这种方式分离您的代码将产生一个组织良好的代码结构,使得诊断和修复可能出现的问题要容易得多。
Separating your code in this manner will lead to a highly organized code structure, making it far easier to diagnose and fix any problems that may arise.
对于文本编辑器这样复杂的代码,外部测试者无法生成针对特定例程的测试—测试者不太了解内部代码组织。
For a complex piece of code like a text editor, an external tester cannot generate tests targeting specific routines-the tester won't have much idea about internal code organization.
只要正确使用,除了提供上下文之外,名称空间还可以用来组织php代码。
When used correctly, namespaces can be a method for organizing your PHP code in addition to providing context.
团队组织结构、行政结构、代码存储库以及构建工具的选择都会影响您的流程的工作方式。
Team hierarchy, leadership structure, code repositories, and choice of build tools all affect how your process works.
如果您试图强行使用其他文件和代码组织方式,那么您可能得付出努力去修改Rails环境。
You will just be picking a fight with the Rails environment if you try to force other file and code organizations.
代码被组织在两个模块中,因此更容易维护。
The code is organized in two modules so it's more maintainable.
CakePHP是如何帮助我们组织和维护代码的?
从功能组件中的代码组织到客户层和服务器层代码重用,都广泛地使用了OSGi。
Both make extensive use of OSGi for the organization of code into functional components and the reuse of that code on both the server and client tiers.
惟一的扩展方法是标准化—标准化代码组织方式、标准化编码约定和标准化工具。
The only approach that will scale is to standardize - standardize the code organization, standardize coding conventions, and standardize the tools.
回收你的代码,创建一个你最喜欢和经常使用的代码片段集,并确保代码组织良好,可以被轻易搜索到。
Recycle your code! Create a collection of your favorite and often-used snippets and make sure that it’s easily searchable and well organized.
回收你的代码,创建一个你最喜欢和经常使用的代码片段集,并确保代码组织良好,可以被轻易搜索到。
Recycle your code! Create a collection of your favorite and often-used snippets and make sure that it’s easily searchable and well organized.
应用推荐