Don’t Worry, Be Lazy
summary
Claims that code generation removes boring, error-prone plumbing and actually pays for itself: Swift Jam generates constants from fonts storyboards strings assets so IDE completion and typed format functions replace fragile strings, Sorcery scans source to emit enum case lists and Equatable implementations (examples: a 30‑property struct, 402 enum cases), and Gyro converts an .xcdatamodel into Swift ObjC or Java models. Build overhead is milliseconds with caching, the tools run in build phases and work reliably in production.
AI-written summary · about
chapters (12)
- 0:00Lazy coding philosophy
- 1:55Manual resource management issues
- 3:02Swift Jam for automation
- 4:48Swift Jam limitations need Sorcery
- 5:53Sorcery automates code generation
- 7:16Code generation template benefits
- 8:49Gyro for cross-platform code
- 10:39Gyro’s template system advantages
- 11:23Q&A on code generation tools
- 13:35Dependencies for code generation
- 15:50Performance impact of generation
- 19:02Q&A wrap-up
related talks
31mMaking the Most Out of Swift
20mHow Not to Write Swift
21mUnlock the Potential of Swift Code Generation
51mGenerate You Some Code for Great Good
01h 03mSwift Tools for Software Crafting 2024
01h 01mGuide to Destroying Codebases the Demise of Clever Code
37mThings I learned after a decade of writing code generators
42mWriting Code for Humans, Not Computers
