Hello
I have recently tried code templates after reading http://www.symfony-framework.com/2008/06/03/speed-symfony-developing-with-eclipse-snippets-templates/ in my Eclipse IDE for PHP development.
I have an idea, when such tools can benefit for developer. Developers are constantly learning new tools, programming languages, frameworks etc. When you work with something new to you, your productivity is usually not very high, because you don't know(or don't remember the syntax).
I think that code templates can become very useful at this point.
Just to give you an idea, I will make an example:
Here is an code snippet of PHP Doctrine ORM finder method usage.
$table = Doctrine::getTable('User');
// find by primary key
$user = $table->find(2);
If I remember this snippet, just like Dfind(ctrl+space to run intellisense and code template replace later). Dfind (D - first letter in Doctrine word).
So, I don't need to remember all this API syntax, and just use Dfind to run Doctrine's finder method.
This is very trivial example, and maybe it is too hard to see the benefits of this approach, but you can use this feature for replacing bigger constructs(which are harder to remember).
I googled on that topic before, but didn't find any information on that unusual
using of this IDE feature.
So, please, let me know what do you think about it?