惯用词对列表
我记得在某处看到过一本用于编程的惯用词对词典。
如get
-set
、open
-close
、allocate
-free等等。
有人记得网址吗?
I remember seeing somewhere a dictionary of idiomatic word pairs for use in programming.
Like get
-set
, open
-close
, allocate
-free
and so on.
Does anyone remember an URL?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
以 ergosys 的答案为基础:
来自 Code Complete 2,第 11 章,第 11 页。 264:
变量名称中常见的反义词
Building on ergosys' answer:
From Code Complete 2, Chapter 11, p. 264:
Common Opposites in Variable Names
代码大全中有两个这样的对的简短列表,一个用于函数名称,一个用于变量名称。如果您没有这本书,您可以使用亚马逊的“查看内部”功能搜索“精确使用对立面”。
There are two short lists of such pairs in Code Complete, one for function names, one for variable names. You can search for "Use Opposites Precisely" using amazon's look inside feature if you don't have the book.
从未见过一般针对编程的列表,但是 PowerShell 有这样一个列表: Cmdlet 动词。每个动词存在的配对都会突出显示。
虽然 PowerShell 在命令行上的一致性努力主要来自标准化这些动词,但某些配对可能也适用于其他上下文。
Never seen a list generally aimed at programming, however PowerShell has such a list: Cmdlet verbs. Pairings are highlighted for each verb where they exist.
And while much of PowerShell's strive for consistency on the command line comes from standardizing those verbs some of the pairings may be appropriate in other contexts as well.
英语不是我的母语,但不是那些反义词 而不是惯用对?
在Linux中你可以使用wordnet来搜索反义词
-ants
用于反义词,v
用于动词。您还可以搜索(n | a | r) – 名词 | 的反义词形容词|副词
。English is not my first language but aren't those antonyms rather than idiomatic pairs?
In Linux you can use wordnet to search for antonyms
-ants
for antonyms andv
for verbs. You can also search for(n | a | r) – antonym for noun | adjective | adverbs
.