Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore real-world challenges in code generation through a cautionary tale from the smithy4s project in this 40-minute conference talk. Learn how a seemingly simple one-line bugfix to companion objects triggered compilation errors for dozens of developers and created a classic engineering dilemma between maintaining backward compatibility and fixing bugs. Discover the double-edged nature of code generation - powerful enough to create cross-language platforms with ease, yet capable of breaking APIs with a single change. Examine how a cleverly designed macro solution preserved both bugfix integrity and user experience. Gain practical strategies for managing generated code using scalameta, implementing effective snapshot testing, and determining when your project is ready for the complexities of code generation. Walk away with insights on navigating the technical and social challenges that arise when code generation goes wrong, and understand the delicate balance between innovation and stability in Scala development.