Practical uses of code generation at Mitene
summary
This talk explains how the iOS team at Mitene adopted code generation using Sourcery and Stencil to automate parts of their app. It covers concrete uses—automatic generation of test data to write unit tests more efficiently and generation around dependency injection (DI)—and describes implementation details, lessons learned after a year of operation, and pros/cons compared with alternatives such as external libraries.
AI-written summary · about
chapters (12)
- 0:00Code generation at Mitene
- 1:15Interest in code generation
- 3:21Practical uses in MVP
- 6:36Dependency injection automation
- 6:57Mock generation challenges
- 8:07Sourcery Stencil basics
- 11:28Test builder generation
- 14:26Operating Stencil in practice
- 16:18Mastering Sourcery Stencil
- 17:43Code generation limits
- 19:36One year of code generation
- 20:45Summary
related talks
53mAutomate your whole iOS Projects & share resources with Android
51mGenerate You Some Code for Great Good
38mCode Generation and How to Use It Effectively
37mCode Generation For Everyone and Everywhere
42mBecoming the Metaprogrammer Real World Code Generation
37mThings I learned after a decade of writing code generators
01h 05mSelf-Writing Code
21mUnlock the Potential of Swift Code Generation
