编程语言/命名

来自康健生活
Kangkk​(留言 | 贡献)2020年6月11日 (四) 16:22的版本 (→of 还是 for)

of 还是 for

遇到一个命名上很纠结的问题,假如我有一个表 User,现在想向表 User 中添加模拟数据,创建函数过程中应该如何为这个添加模拟数据的逻辑函数命名呢?

有两种选择,哪个合适:

  • 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.
  • 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.