1. A computer-implemented method, comprising: receiving, by a development system, a first event generated by user interaction with an application; generating and causing display of first source code that corresponds to the first event; receiving, by the development system, a second event generated by user interaction with the application; generating second source code that is optimized based on both the first and second events; and causing display of the optimized second source code to be displayed in place of the first source code.