惯用词对列表

发布于 2024-08-18 14:16:02 字数 170 浏览 3 评论 0原文

我记得在某处看到过一本用于编程的惯用词对词典。

get-setopen-closeallocate-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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

私野 2024-08-25 14:16:02

以 ergosys 的答案为基础:

来自 Code Complete 2,第 11 章,第 11 页。 264:

变量名称中常见的反义词

  • 开始/结束
  • 第一个/最后一个
  • 锁定/解锁
  • 最小/最大
  • 下一个/
  • 上一个旧/新
  • 打开/关闭
  • 可见/不可见
  • 源/目标
  • 源/目的地
  • 向上/向下

Building on ergosys' answer:

From Code Complete 2, Chapter 11, p. 264:

Common Opposites in Variable Names

  • Begin/end
  • first/last
  • locked/unlocked
  • min/max
  • next/previous
  • old/new
  • opened/closed
  • visible/invisible
  • source/target
  • source/destination
  • up/down
逆光飞翔i 2024-08-25 14:16:02

代码大全中有两个这样的对的简短列表,一个用于函数名称,一个用于变量名称。如果您没有这本书,您可以使用亚马逊的“查看内部”功能搜索“精确使用对立面”。

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.

兰花执着 2024-08-25 14:16:02

从未见过一般针对编程的列表,但是 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.

春花秋月 2024-08-25 14:16:02

英语不是我的母语,但不是那些反义词 而不是惯用对?

在Linux中你可以使用wordnet来搜索反义词

sudo apt-get install wordnet

wn open -antsv

-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

sudo apt-get install wordnet

wn open -antsv

-ants for antonyms and v for verbs. You can also search for (n | a | r) – antonym for noun | adjective | adverbs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文