In this thread it was mentioned mentioned that Xcode 4 has a "code fixing app. I haven't come across any leaked info on this, but it certainly was intriguing. Assuming this rumor is true I have some questions. What would be the advantage of having something that "fixes" your code in an app separate from Xcode? I can understand something like instruments needing to dynamically assess your app, but in this case, if it's based on static analysis, it seems strange that it would be in a separate application. Being a separate application seems especially odd, given that it's now pretty well-known that Apple has merged Xcode and IB into a single app. What kinds of things might be possible here? Is it theoretically possible for something like this to read the various paths through your code and suggest better optimized code based on pre-defined design pattern rules? Are there some other cool possibilities?