颤动中特征优先的驱动结构

发布于 2025-02-12 19:12:36 字数 571 浏览 1 评论 0原文

我有一个关于特征优先结构的疑问。在此体系结构中,如果我们共享了Roseources-型号,存储库等,则可以在共享common或其他类似的文件夹中定义它们。但是我从其他方面有疑问。

假设Instagram,我们具有 - 主页(同一页面)中其他人的故事和帖子之类的功能。我认为我们应该将其分为两个不同的功能,因为它们是独立的。但是我们应该如何加入他们以及哪个文件夹?如果我们创建了“家庭”之类的新功能,那是不行的,因为它不应取决于其他功能。因此,我认为我们应该创建共享/演示/页面/家庭喜欢的功能以加入它们吗?我对吗?

我认为我们没有其他方式。

我有两个功能 - 帖子和用户以及共享文件夹,共享包含此情况的共享模型和实体。但是我不知道如何在一个页面中连接两个功能 - 帖子用户?

I have a question about feature-first structure. In this architecture, if we have shared roseources - models, repositories and etc, we can define them inside shared, common or other folders like these. But I have question from other aspect.

Assume instagram, we have features like - stories and posts from other people in the home page (same page). I think we should divide it to two different features because they are independent. But how we should join them and in which folder? If we create new feature like "home" it is not okay because it should not depend on other features. So I think that we should create shared/presentation/pages/home like feature to join them in one place? am I right?

I think we don't have other way.

I have two features - posts and users and shared folder, shared contains shared models and entities for this case. But I don't know that how can I connect two features - posts and users in one page?

FEATURE-FIRST STRUCTURE

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文