This video course is an introduction to RIBs architecture. In it I will give an overview of RIB's building blocks, overall RIBs application architecture and guide you through a codebase of an iOS application that was build with RIBs from the ground up.
RIBs is the cross-platform architecture framework behind many mobile apps at Uber. The name RIBs is short for Router, Interactor and Builder, which are core components of this architecture. This framework is designed for mobile apps with a large number of engineers and nested states.
The RIBs architecture provides:
-
Shared architecture across iOS and Android. Build cross-platform apps that have similar architecture, enabling iOS and Android teams to cross-review business logic code.
-
Testability and Isolation. Classes must be easy to unit test and reason about in isolation. Individual RIB classes have distinct responsibilities like: routing, business, view logic, creation. Plus, most RIB logic is decoupled from child RIB logic. This makes RIB classes easy to test and reason about independently.
-
Tooling for developer productivity. RIBs come with IDE tooling around code generation, memory leak detection, static analysis and runtime integrations - all which improve developer productivity for large teams or small.
-
An architecture that scales. This architecture has proven to scale to hundreds of engineers working on the same codebase and apps with hundreds of RIBs.
Current WIP Course Outline is the following:
▾ Intro
• What to expect from the course?
• Who is this course for?
▾ What’s Wrong with MVC and other MVVM/MVP+ design patterns and architectures?
• Massive View Controller
• Lack of proper decoupling and scope management in MVVM/MVP+ architectures
• Need for an architecture that scales for large teams
▾ RIBs Architecture
• RIBs Tree Application Structure
• Application Scopes and State Management
▾ Communication Between RIBs
• Streams
• Listeners
• Builder & Component
• Interactor
• Router
• View & Presenter
▾ RIB Application Code Walkthrough
• App features overview
• Project setup
• Application walkthrough
• Layers of Responsibility
• Building new Login RIB
▾ Advanced Content. Where do go from here?
• Clean Architecture
• VIPER