Code Generation for Zombies - Ragunath Jawahar, Kite Cash

684 views · Published 29 September 2017 · 36:45 · Indexed 30 October 2026

Channel: Hasgeek TV · 2017 · Science & Technology

Watch on YouTube

There are times where cross-cutting concerns like analytics and logging can take a toll on large applications. Analytics is a crucial part for any application to deliver value to customers and understand user behavior. Oftentimes adding tracking code to application could be hard, boring and error-prone.

In this talk I reveal how we used Java code generation using JavaPoet to generate tracking code for analytics for our Android and iOS apps. Using this technique we achieved 100% accuracy, increased developer productivity and reduced integration time by leveraging the Java compiler and our preferred IDE - Android Studio.

The talk also contains insights on best practices for 1) Code generation and 2) Language limitations and structuring generated Java code for transpiling Java to Objective-C using J2ObjC for use in iOS. Code generation is a nice technique that can help developers solve complex problems, this talk will help developers shed their inhibition and encourage them to use this technique wherever applicable.

Talk details: https://fragments.talkfunnel.com/2017/21-code-generation-for-zombies

Fragments 2017 website: https://fragments.in/2017/

More from this channel