Sold by Mighty Ape
Mastering Kotlin OOP isn’t just a reference, it’s your definitive playbook for crafting scalable, maintainableKotlin applications. From enforcing immutability with val to modularizing vastcodebases, this book guides you through every facet of modern Kotlindevelopment. You’ll learn how to apply SOLID principles and Clean Architecture, harness coroutines for structured concurrency, and build thread-safe, production-ready libraries that stand the test of time.
What You’ll Learn ✔ Single-Responsibility & Open-Closed Design
- Decompose complex classes into focused collaborators using interfaces, abstract classes, and data classes
- Extend behavior safely with sealed hierarchies, mix-ins, and Kotlin’s override keyword
- Leverage custom getters/setters and backing properties to encapsulate validation and invariants
✔ SOLID & Clean Architecture in Kotlin
- Apply Liskov, Interface Segregation, and Dependency Inversion to your service and data layers
- Structure code into domain, data, and presentation modules with strict inward-pointing dependencies
- Swap implementations without modifying clients via repository and use-case interfaces
✔ Generics, Variance & Type Safety
- Master generic classes and methods with T, K, V type parameters and where clauses
- Model covariance (out) and contravariance (in) for producer/consumer APIs
- Use reified inline functions to perform runtime type checks without reflection tokens
✔ Coroutines, Structured Concurrency & Thread Safety
- Expose suspending functions on interfaces and inject well-scoped CoroutineScope instances
- Compose async workflows with async/await, supervisorScope, and actor-based state machines
- Protect shared data using @Synchronized, AtomicFU delegates, and volatile properties
✔ Immutability, State Management & Modularization
- Design fully immutable classes with val, defensive copies, and persistent collections
- Enforce invariants at construction with require, factory methods, and builders
- Break monoliths into feature, domain, and infrastructure modules; hide internals using internal and private
✔ Testing Strategies: JUnit, MockK & Integration
- Write fast, deterministic unit tests with JUnit 5 and @ParameterizedTest
- Mock dependencies and verify interactions using MockK’s every, verify, and coroutine support
- Elevate confidence with integration tests using Testcontainers, Spring Boot’s test slices, and CI-driven pipelines
Who This Book Is For
- Kotlin developers looking to level up from scripts and small apps to enterprise-grade systems
- Architects defining module boundaries, clean APIs, and dependency graphs in large teams
- Android and backend engineers who need non-blocking, coroutine-driven architectures that remain testable
- Library authors building reusable, thread-safe components with zero-overhead abstractions
- DevOps and platform teams packaging and distributing Kotlin modules across microservice fleets
Packed with hands-on examples, real-world case studies, and actionable best practices, Mastering Kotlin OOP & Architecture empowers you to build applications that are robust, extensible, and ready for any production challenge.
We are committed to protecting your rights under the Consumer Guarantees Act and working with our suppliers to assist with warranty claims. Products sold by Mighty Ape will be covered by a Manufacturer's Warranty for at least a one-year period from the date of purchase.
Your warranty will cover any manufacturing defects which, if existing, will present themselves within this warranty period.
Your warranty will not cover normal wear and tear, faults caused by misuse, and accidents which cause damage or theft caused after delivery. Using the product in a way it is not designed for will void your warranty.
Please refer to our Help Centre for more information.
Save with Primate
Save $5.95 with Discounted Shipping*
Earn $0.58 Points Credit*
Exclusive Deals
Mighty Ape Travel discount
^FREE 14 day trial. Primate will be charged $89 / 365 days after free trial, cancel anytime. Delivery benefits available in selected postcodes only. †*T&Cs apply, click for details.