In my wildest dream I was wondering why wouldn't it be possible to have a code repository that learns on its own from various code done in an organization, and to be able to bring up templates for developers to just modify and reuse?
I feel artificial intelligence could be a rite fit to build repository ("Code Template Repository") that can make developers life easy and apply re-usability to greater heights. This could be very handy for products/domains specific learning pattern, which would give birth to re-usability from a business stand point.
Maybe it's too ambitious to say "learn on its own", but there could be some manual intervention from developer so as to what a template is, and a replacement criteria for reusing it. I haven’t worked out the details yet. As I started, it could be a wild dream but I feel there is a real need of a repository that could store knowledge not just the .jar file :).