编程语言/命名:修订间差异
来自康健生活
< 编程语言
| 第3行: | 第3行: | ||
有两种选择,哪个合适: | 有两种选择,哪个合适: | ||
* 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 :“为用户创建”。 | * 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: 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. | *:: 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> 和 <code>for</code> 都是介词,后面都是 <code>+ 名词/相当于名词的词</code> 以此构成介词短语。 | ||
2020年6月11日 (四) 16:29的版本
of 还是 for
遇到一个命名上很纠结的问题,假如我有一个表 User,现在想向表 User 中添加模拟数据,创建函数过程中应该如何为这个添加模拟数据的逻辑函数命名呢?
有两种选择,哪个合适:
- create of user :“创建用户”。
- eq: This would mean you have to manually create a number of user subscriptions,
- eq: It may take a few seconds to create all of the new user's files.
- create for user :“为用户创建”。
- eq: Would you like to create UI for the user to interact with your add-in?
- eq: Create a directory for the user and give him the necessary permissions.
of 和 for 都是介词,后面都是 + 名词/相当于名词的词 以此构成介词短语。
在作定语时:
of表示所属关系。- eq: a student of our class
for表示目的用途。- eq: a book for children
No categories