当您开始创建用于将用户添加到事件的 UI 时,您只需使用 User 对象的 .friends getter 即可。不需要实现获取 N 个随机用户的逻辑(无论如何你稍后都会扔掉)。
If allowing to only add friends to events is your final goal, then I'd develop friendships first.
When you will begin creating UI for adding users to events, then you'll just use .friends getter of a User object. No need to implement logic of fetching N random users (that you will throw away later anyway).
发布评论
评论(1)
如果只允许在活动中添加朋友是您的最终目标,那么我会首先发展友谊。
当您开始创建用于将用户添加到事件的 UI 时,您只需使用
User
对象的.friends
getter 即可。不需要实现获取 N 个随机用户的逻辑(无论如何你稍后都会扔掉)。If allowing to only add friends to events is your final goal, then I'd develop friendships first.
When you will begin creating UI for adding users to events, then you'll just use
.friends
getter of aUser
object. No need to implement logic of fetching N random users (that you will throw away later anyway).