好,你们是怎么利用方法,来组织代码的呢?
Right, so how do you use the idea of functions to organize code?
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.
从本质上说,用于进行这种数据组织的代码应该是可移植的。
The code for such data organization, by its very nature, should be portable.
例如,一个软件供应商可能根据合同,需要为另一个组织提供代码。
For example, a software supplier may provide code on a contract basis to another organization.
但对于较复杂的用户输入,其优越性会立即通过组织良好的代码和功能而体现出来。
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.
只要正确使用,除了提供上下文之外,名称空间还可以用来组织php代码。
When used correctly, namespaces can be a method for organizing your PHP code in addition to providing context.
代码被组织在两个模块中,因此更容易维护。
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 package structure organizes the code and facilitates modularity and maintenance.
惟一的扩展方法是标准化—标准化代码组织方式、标准化编码约定和标准化工具。
The only approach that will scale is to standardize - standardize the code organization, standardize coding conventions, and standardize the tools.
惟一的扩展方法是标准化—标准化代码组织方式、标准化编码约定和标准化工具。
The only approach that will scale is to standardize - standardize the code organization, standardize coding conventions, and standardize the tools.
应用推荐