Why? Small functions promote reuse.
为何?简单函数促进代码重用。
Small functions are easier to read.
简单函数更易于阅读。
Small functions are easier to maintain.
简单函数更易于维护。
Why? Small functions are easier to maintain.
为何?简单函数更易于维护。
The compiler will only inline very small functions when compiling for space.
当编译器针对空间编译时,只会内嵌非常小的函式。
Indeed, you will frequently find yourself assembling scripts out of many small functions.
实际上,您会经常发现,脚本往往由很多小型的函数装配而成。
Small functions are easier to test, especially when they do one thing and serve one purpose.
简单函数更易于测试,特别是当它们只做一件事,只为一个目的服务时。
Why? Small functions are easier to test, especially when they do one thing and serve one purpose.
为何?简单函数更易于测试,特别是当它们只做一件事,只为一个目的服务时。
In this paper, we have proved a Unicity theorem concerning three distinct small functions Shared CM, which improves the results given by r.
本文证明了与三个CM公共小函数有关的一个亚纯函数的唯一性定理,改进了R。
Purity also facilitates testing, for instance through QuickCheck, especially if the program is structured around a lot of small functions combined together.
纯洁性也有利于测试,尤其当程序的结构是由许多小函数嵌合而成的时候;比如Haskell的纯洁性就有效地降低了通过QuickCheck(译注:Haskell开源测试框架)进行测试的难度。
This section contains a lot of small functions, each of which takes care of a bit of the annoying boilerplate that usually comes with implementing drag-and-drop functions.
本节包含很多小函数,每个函数负责在实现拖放功能时处理一些烦人的重复工作。
This is not that difficult a problem; since they are small functions, you can even include them in your own program's source whenever the underlying system doesn't provide them.
这并不是一件那么困难的事情;因为当底层系统没有提供它们时,您甚至可以将一些小函数直接包括在自己的程序源代码中。
Because you can put these probes anywhere to indicate the start and end of a operation, they can span multiple functions, or only a small fragment of a given function.
因为可以把这些探测放在任何地方以表示操作的开始和结束,所以它们可以跨多个函数,也可以只覆盖函数中的一小部分。
Proper calculations of sine and other functions that are both accurate and fast require very careful algorithms designed to avoid accidentally turning small errors into large ones.
要准确快速地计算正弦函数和其他函数,需要非常仔细的算法,专门用于避免无意地将小的误差变成大的错误。
Someday pads may even be as small and light as actual paper, but meanwhile they can fulfill many more of paper's functions than can computer screens.
有一天垫子甚至可能会如同真正的纸一样小而轻,但同时比计算机屏幕满足更多纸的功能。
Two new system-supplied functions enable administrators to analyze inlining of small XML documents.
管理员可以使用系统提供的两个新函数分析小型XML文档的内联。
The syntax and structure of the language make it easy to create small, easy-to-understand functions to build upon.
这种语言的语法和结构使开发人员很容易开发简单且容易理解的函数。
Just note that writing deeply recursive functions on the SPE is problematic because there is no stack overflow protection on the SPE, and the local store is small to begin with.
请注意在SPE上编写深度递归函数有些问题,原因是在SPE上没有任何堆栈溢出保护,而且本地存储也很小。
Not only can it be used as a personal finance manager, it also functions well as a small business accounting package.
它不仅可以作为个人财务管理软件,也可以作为小型商业会计软件包。
Each function is relatively small, but all together, the functions serve to hide a lot of annoying details.
每个函数都相当小,但是它们隐藏了大量烦人的细节。
It incorporates a small RAM-based OS and toolset for administration and security functions, and then allows applications bundles, built using any Linux distribution, to run on top of it.
它加入了一个小的基于RAM的OS和用于管理和安全功能的工具集,这样就可以让使用任何Linux发行版本编译的应用程序包在其上运行。
The libpurify_stubs.a is a small library that has empty stubs for all Purify API functions.
这个 libpurify_stubs.a是一个很小的数据库,它有供PurifyAPI函数所用的空白存根。
In fact, there is a small set of functions that WordPress intends for plugins to redefine.
事实上,WordPress设计了一些让插件重新定义的函数。
Supporting the functions called in the HTML are a couple small support functions. Listing 4 looks at them.
支持HTML中调用函数的是两个小函数。
This function returns zero on success. In general, the get_user and put_user functions are faster than their block copy counterparts and should be used if small types are moved.
成功时该函数返回0,一般情况下,get_user和put_user函数比它们的块复制副本要快一些,如果是小类型被移动的话,应该用它们。
Indeed, although certain minor functions may use only a small part of the brain at one time, any sufficiently complex set of activities or thought patterns will indeed use many parts of the brain.
事实上,虽然在某一时间,一些小功能可能只用到一小部分大脑,但是任何非常复杂的活动或思维模式确实会用到大脑的很多部分。
A good way to make a small step in the right direction is by changing industries without changing job functions.
朝着正确的方向迈出一小步的一个好办法是,改变行业但不改变工作职能。
Though these large machines still exist, many of their functions have been taken over by small powerful personal computers, commonly known as PCs.
虽然这种大计算机仍然存在,但它们的许多功能已被体积小但功能齐全的个人电脑--即我们常说的PC机--所代替了。
One definition of an embedded system is a computer system designed to perform a small number of dedicated functions.
嵌入式系统的一种定义是:设计用于执行少数专用功能的计算机系统。
One definition of an embedded system is a computer system designed to perform a small number of dedicated functions.
嵌入式系统的一种定义是:设计用于执行少数专用功能的计算机系统。
应用推荐