从一开始就要寻求使得代码简洁的方法。
利用类的继承和多态特性,程序代码简洁,运行速度快。
By using characteristic of inheritance and encapsulation, code of programmer is more succinct, and speed of running is faster.
对系统用户操作的样例,在系统验证中可以用到,代码简洁。
The system user of the sample, the system verification can be used, concise code.
使用固定的游戏速度和最大的FPS是一个容易实现而且代码简洁的解决方案。
Using a constant game speed with a maximum FPS is a solution that is easy to implement and keeps the game code simple.
由于采用了OOP技术,使得软件源代码简洁、调试方便,极大地提高了软件生产效率。
By using OOP technology, the length of source code has been greatly reduced, and it is easy to debug.
本文采用LAG数据结构对测井曲线图数据进行压缩,压缩效率较高,且算法简单,代码简洁。
LAG was used to compress well-logging data, which has the merits of relatively high compressed efficiency, quite simple algorithm and the extremely succinct code.
文章介绍了一种面向应急救援的呼叫中心系统,其核心软件基于有限状态机理论设计而成,具有控制结构清晰、程序代码简洁高效等特点。
This paper presents an emergency call center system. The kernel software of the system is designed based on a finite-state machine, featuring with clear control structure effective program code.
还要注意,这里仍然对异常未加检查,这将使代码异常简洁。
Also note the continuing pattern of unchecked exceptions, which keeps the code remarkably concise.
如果这个匿名类可被作为一个内部类单独放置,那么清单1中的代码将会简洁很多。
The code in Listing 1 would be much neater if the anonymous class was placed separately as an inner class.
但是这种欣赏并不是一定要求代码易读或者简洁。
But this appreciation does not necessarily require the code to be readable or maintainable.
虽然他们定义简洁代码的侧重点不尽相同,但其中仍有共通之处:简单、无重复、易读、优雅。
Although they all emphasize different aspects of clean code, there are a few emerging themes: simplicity, lack of duplication, readability, elegance.
随着我们继续构建这个库,只要有助于使代码更简洁、更清晰,越来越多这样的特性将添加进来。
As we continue building out the library, more and more of those features will begin to worm their way in, anywhere that they help make the code more concise and more clear.
在一个例子中ejb组件的正确使用使得代码更简洁、更易懂。
In one case proper use of EJB components resulted in less, and more easily understood code.
当代码变得高效又简洁的时候,就可以说是走上正轨了。
When your code is getting both better and simpler, that is when you know it's right.
如果这些字符串经过精心挑选,它们就可以使结果代码更简洁。
If those strings are selected carefully, they can make the resulting code much clearer.
我不认为软件工程的教授们都特别欣赏代码的简洁。
I'd like to think that software engineering professors are especially tuned into code cleanliness.
你所选择的语言,你应该觉得“舒服”,并且能够写出有效(而且简洁)的代码。最重要的,让语言去适应项目,反之亦然。
The language you choose should provide you with a suitable "comfort" level, the ability to produce efficient (and clean) code, and, above all, allow the language to suit the project and vice-versa.
看起来XML还有另一个好处:代码比文本版的代码更为简洁、容易。
It looks like there's another benefit to XML: the code is a lot cleaner and easier than the text version.
像Rails那样使用这种方法,您可以两全其美:具有较少重复的简洁代码而不会失去灵活性。
Using this approach, as Rails does, you get the best of both worlds: concise code with less repetition without sacrificing flexibility.
尽管还能让这段Perl代码更简洁,但是它已经足以说明在Perl中处理XML是多么容易。
Although you can make the Perl more concise, this code also illustrates how easy it is to manipulate XML in Perl.
虽然您可以在没有jquery库的情况下完成这些工作,但是使用该库的价值在于,该代码非常简洁且所有跨平台工作都已经为您完成。
You can do all of this work without the jQuery library, but the value of using the library is that the code is concise and all the cross-platform work has been done for you.
约定优于配置也会使新的Rails开发人员能够立即上手,因为控制器和模型代码特别简洁。
Convention over configuration also leads to "aha!" moments for new Rails developers because the controller and model code is so concise.
但是,生成的XQuery代码仍然保持简洁,并不包含使用其他语言来处理XML时将出现的开销。
Nevertheless, the resulting XQuery code remains concise and does not contain the overhead you'd have when using a different language to process XML.
本例中所获得的推荐并不十分有用,因为我们有意将bean代码做的简洁以证明预输入组件如何工作。
The suggestions that you get in this example are not very useful, because we intentionally kept the bean code simple here to demonstrate how a type-ahead component works.
学习OOP、设计模式、简洁代码和重构。
Perl语言,在展示它们如何能够利用非常酷且不明显的代码做出真正简洁的事情方面,给予技术人员很大的欢乐。
Perl is a language that gives technical folks great glee in showing how they're able to do really neat things with very cool, non-obvious code.
如果使用Doxygen,代码注释就会更简洁,省去了嵌入的HTML标记,如清单5所示。
When you use Doxygen, code comments are much more terse, without the embedded HTML, as demonstrated in Listing 5.
第十一章在系统级别讨论了简洁代码,如依赖注入和面向方面编程技术。
Chapter 11 talks about clean code in the context of system-level techniques such as Dependency Injection and Aspect-Oriented Programming.
上面的代码相当简洁,所以我逐行来说明它的功能。
The above code is quite terse, so I'll go over what it does line by line.
好名字的价值如何估计都不为过,记住Ward原则:当每一个子程序都只做它应该做的,你就拥有了简洁代码。
It is hard to overestimate the value of good names. Remember Ward's principle: you know you are working on clean code when each routine turns out to be pretty much what you expected.
应用推荐