Besides not being a problem, it collaborates to standardizing the way code looks, thus facilitating the readability across different code bases.
除了不是一个问题,而是协作,以规范的方式代码,从而促进可读性跨越不同的代码基地。
First way code is more simple, but second way optimizes stack usage, which I am preferring in all my cases to deal with huge data without affecting the stack and the performance.
第一种方法代码更简单,但第二种方法优化堆栈的使用,而我更喜欢我的所有案件处理不影响堆栈和性能庞大的数据。
Just as the code breaking has its wider relevance in the struggle for Spain, so his attempts to make his way up the promotion ladder speak volumes about British society.
正如破译密码在西班牙的战争中有着更广泛的意义一样,他试图晋升的努力也充分说明了英国社会的情况。
That way, Apple could not unilaterally introduce a code that weakens the iPhone—a user would have to consent to it.
这样,苹果就不能单方面引入削弱iPhone 的代码,而是必须先得到用户的同意才行。
By handling content in this way, you have much less code in each of your handler methods.
通过以这种方式处理内容,每个处理程序方法中的代码就要少得多。
But in general, the choice of variable name is a great way of commenting your code.
但是通常来说,变量名称的选择,是评论你的代码的,一个重要方式。
We will also bundle it all up in a plugin to show one way of integrating code generation into your development process.
我们还会将它们都绑定到一个插件中,从而展示一种将生成的代码集成到开发过程的方法。
This way, the code can leave the resource management to the container and yet easily access a resource through its name.
以此方式,代码可以脱离容器的资源管理而仍然可以轻易的通过资源的名称访问资源。
The following code shows one way to implement this pattern in C#.
以下代码显示了在 C# 中实现该模式的一个方式。
People can code the way they like and still be more productive than not using an IDE.
人们可以以自己喜欢的方式编写代码,而且比不用IDE生产率更高。
This is hardly the way to write robust code that other developers can easily understand and maintain.
这不是编写使其他开发人员能够轻松理解和维护的健壮代码的方法。
Static analysis tools are one way of improving overall code quality.
静态分析工具是提供总体代码质量的唯一途径。
Another way to get fast executing code is to generate the JVM bytecode directly.
另一个可产生快速执行代码的方法就是直接产生JVM字节码。
It also leaves as an exercise for the reader several enhancements to the way the sample code USES regular expressions.
它还为读者留下了一个练习,要求读者对示例代码使用正则表达式的方式作一些改进。
Even if your team has a different methodology, most of the time you are the one in charge of the way you code, and this is where refactoring comes along.
即使你的团队采取的方法别出蹊径,但在大多数时候,总是由你来负责管理编码方式,这时就是运用重构的时机。
Performing manual code reviews and inspections can be a highly effective way of identifying defects in code.
执行手工的代码复查和检查是一种在代码中确定问题的很有效的方式。
Because of the way the code is structured, we now know that memory location 0001f574 stores some kind of data.
通过代码的构造方式,我们现在知道内存地址0001f 574处存储有某种类型的数据。
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.
不过,随着程序越来越复杂,递归程序设计能够让程序员以可维护且逻辑一致的方式更好地组织代码。
Code metrics are a way to mathematically calculate the complexity of code.
代码度量是一种计算代码复杂度的数学方法。
It is important to understand what effect the run-time environment has on the way that application code is written.
理解运行时环境对应用程序代码的编写方式有什么影响是重要的。
If you're already building code this way, you can better recognize and refactor bad implementations.
如果您已经在用这种方式构建代码,那么您就可以更好地识别和重构不好的实现。
It may at first appear that representing empty lists in this way makes the code simpler.
一开始看来,用这种方法表示一个空链表使代码简单。
If you're like many programmers who aren't fond of commenting code, unit tests are a way of documenting your code behavior.
如果您像其他许多程序员一样不喜欢为代码加注,则单元测试是记录代码行为的一种方法。
RHTML is a true template format -- not simply a way of embedding code in HTML -- and this is a much more powerful approach.
RHTML是真正的模板格式 ——不仅是在HTML中嵌入代码的方式 ——这是一种更为有效的方法。
This way, code won't break when new sub-elements are added to provide more granular markup.
通过这种方式,在添加新的子元素以提供更细粒度标记时,代码就不会发生崩溃。
Code coverage is a way of seeing how much code is covered by a set of tests.
代码覆盖是一种查看一套测试覆盖了多少代码的方法。
In this way, timing code can be added to interesting transactions but only be measured on demand.
通过这种方式,可以将计时代码添加到感兴趣的事务中,但是这些事务只会根据兴趣进行评测。
In other words, you need it in a way that the code can do math with it.
换言之,就是需要它以代码能处理的方式存在。
Ask yourself, does the structure of your code, the way the code is named, etc., really reveal the intention of your code?
问一下你自己,你的代码结构、命名方式等等,是否揭示了代码的意图?
In real-world situations, having some way to call code written using one technology from the other is extremely useful.
在真实世界的情形中,拥有一些方法以让用一种技术编写的代码来调用用另一种技术编写的代码是极为有用的。
应用推荐