youzan / bifrost Goto Github PK
View Code? Open in Web Editor NEWA delightful library for app business modular architecture.
License: MIT License
A delightful library for app business modular architecture.
License: MIT License
本人根据demo工程,对Mediator这个有点疑惑,Home,Sale,Shop模块相互调用的话都要依赖Mediator,各个模块要将自己的协议放在Mediator里面暴露给需要的模块调用,那这个Mediator该由谁来维护?开发过程中Sale和Shop等模块是由不同团队在开发维护。我对Mediator这个有点想不通,,,求大佬分析讲解,是不是我的理解和使用姿势不对?
请教您一个关于组件化时重复引入基础库的问题,场景是这样的:
有四个功能模块,分给了四个不同的团队开发,我们只负责整合集成组件并打包成最终的APP,四个组件都是以framework的形式提供给我们的,我们这边看不到组件源码,这四个组件都会依赖相同的基础库和网络请求库,那么他们打包成framework的时候,每个framework里都会包含这些基础库和网络请求库,那么我们在最终整个这四个功能组件的时候,基础组件相当于被项目引入了4次?这样理解对吗?如果对的话,有什么方法能解决呢?
项目中同时存在URL和Protocol两种方案,这两种方案分别在什么情况下做优先选择呢?根据参数是不是复杂参数吗?
我看几乎每个模块中都引用了Mediator中的Service这样设计是否还有优化的空间
例如:
+ (void)load {
[Bifrost bindURL:kRouteShopDetail toHandler:^id _Nullable(NSDictionary * _Nullable parameters) {
ShopDetailViewController *vc = [[self alloc] init];
return vc;
}];
}
swift不支持吧?
moduleByService这个接口的返回值就是module的对象 类型不对吧 可以直接调用module的方法 不是protocol**
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.