MB·00
Start Here: The Phone Is a Different Computer
For web and backend engineers moving to mobile, and for Android developers broadening to iOS and cross-platform work: what makes mobile engineering its own discipline, the TiffinBox customer and rider apps as the running example, the map of the volume from lifecycle to release, the vocabulary, and how to study it with or without a phone on the desk.
Start here: how to use this volume
What this volume is
This volume, beyond the roadmap's original parts, covers mobile engineering: building apps for Android and iOS that are fast, frugal, secure and reliable on real phones and real networks. If you've built web frontends (Volume 2) and backends (Volume 3), much carries over: state-driven UI, HTTP APIs, testing, observability. What's different is the environment: an operating system that pauses and kills your app, one UI thread, slow and flaky networks, a battery, scarce memory, and releases that are installed copies rather than deployments.
Every chapter has the usual shape: Start here with a measured example; How deep to go; the full chapter; a Lab; and a Revision sheet. A note on the labs: the lab machine has no Android emulator or iOS simulator, so the labs measure the mechanisms directly: a UI loop's frame budget, a declarative runtime's re-renders, the cost of crossing a language boundary, a network with mobile latency, two devices syncing, image decoding memory, radio energy, certificate pinning and staged rollouts. Each says plainly what it substitutes for, and each ends with a "try it yourself" on a real device.
- New to mobile? Read this chapter, then 01 to 10 in order.
- An Android developer? Skim 01 and 02's Android parts; read the iOS sections, 03 (cross-platform), and 05, 07–09 closely.
The running example
TiffinBox (Volumes 19–21) gets two apps:
| App | Users | Needs |
|---|---|---|
| customer app | subscribers | browse kitchens and menus, subscribe, skip days (offline too), pay, live delivery tracking, notifications, the assistant |
| rider app | delivery riders | today's route, pick-up and drop-off status, location sharing during deliveries, payouts |
The map
| Chapter | Topic | The mechanism it teaches |
|---|---|---|
| 01 | platforms, lifecycle, main thread | process death, configuration changes, frame budgets |
| 02 | native UI and architecture (Android and iOS) | declarative UI, identity and stability, unidirectional data flow, concurrency |
| 03 | cross-platform frameworks | where the shared/native boundary sits and what crossing it costs |
| 04 | networking on mobile networks | round trips dominate; API design for latency and old app versions |
| 05 | offline-first and sync | local source of truth, operations, conflicts, clocks |
| 06 | performance and memory | startup, bitmap memory, leaks, field metrics |
| 07 | background work, push and battery | radio energy, OS limits, push end to end |
| 08 | security | the untrusted client, secure storage, sign-in, pinning, attestation |
| 09 | testing, release and observability | staged rollouts, slow adoption, server-side switches |
| 10 | projects | the TiffinBox apps |
How to study this volume
A routine that works
- Read the chapter, run the lab, then do its "try it yourself" on a real device or emulator.
- Use a mid-range Android phone as your main test device, with developer options on (show layout bounds, profile GPU rendering, don't keep activities).
- Turn on network throttling while developing (chapter 04).
- Build the projects in chapter 10 incrementally, one milestone per chapter or two.
Warm-up exercises
- Turn on "Don't keep activities" on an Android phone and use three apps you know: which lose your place?
- Use your favourite app on a throttled 3G profile: what breaks first?
- Check a phone's battery settings: which apps use the most background battery, and why might that be?
- Look up your country's most common phone models and their RAM: what's the "typical" device for your users?
Glossary
- Main (UI) thread: the single thread that handles input and draws UI.
- Process death: the OS killing a background app's process.
- Offline-first: designing apps to work from local data and sync opportunistically.
- Push notification: a message delivered through the platform's push service (FCM, APNs).
- Staged rollout: releasing a version to a growing share of users.