查看“︁编程语言/命名/of还是for”︁的源代码
来自康健生活
←
编程语言/命名/of还是for
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== 引言 == 遇到一个命名上很纠结的问题,假如我有一个表 User,现在想向表 User 中添加模拟数据,创建函数过程中应该如何为这个添加模拟数据的逻辑函数命名呢? 有两种选择,哪个合适: * 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 ==内置函数 == 在很多内置函数中,如 <code>indexOf</code>、<code>lastIndexOf</code>(javascript)、等,使用的都是 <code>Of</code> 连接词。
此页面嵌入的页面:
模板:Underline
(
查看源代码
)
返回
编程语言/命名/of还是for
。
导航菜单
康健生活
搜索
user-page
通知
user-interface-preferences
个人工具
登录
五一
多读书,多运动,多到远处走走,再看看不一样的世界。