编程语言/命名:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
无编辑摘要
第1行: 第1行:
== of 还是 for ==
== 引言 ==
遇到一个命名上很纠结的问题,假如我有一个表 User,现在想向表 User 中添加模拟数据,创建函数过程中应该如何为这个添加模拟数据的逻辑函数命名呢?
{| class="wikitable"
 
|-
有两种选择,哪个合适:
| [[/of还是for|of还是for]] || 示例 || 示例
* create of user :“创建用户”。
|-
*:: eq: This would mean you have to manually {{Underline|create|red}} a number {{Underline|of user|red}} subscriptions,
| 示例 || 示例 || 示例
*:: eq: It may take a few seconds to {{Underline|create|red}} all {{Underline|of|red}} the new {{Underline|user's|red}} files.
|-
* create for user :“为用户创建”。
| 示例 || 示例 || 示例
*:: eq: Would you like to {{Underline|create|red}} UI {{Underline|for|red}} the {{Underline|user|red}} to interact with your add-in?
|}
*:: eq: {{Underline|Create|red}} a directory {{Underline|for|red}} the {{Underline|user|red}} and give him the necessary permissions.
 
<code>of</code> 和 <code>for</code> 都是介词,后面都是 <code>+ 名词/相当于名词的词</code> 以此构成介词短语。
 
在作定语时:
* <code>of</code> 表示所属关系。
*:: eq: a student of our class
* <code>for</code> 表示目的用途。
*:: eq: a book for children

2020年6月12日 (五) 02:44的版本

引言

of还是for 示例 示例
示例 示例 示例
示例 示例 示例