in reply to
When to use templates?
Templating is a good solution, but you have to define your problem first. If you just use it and don't have a good sense of why they are good, then you'll "use" them but not in a way that solves any problem - and then they'll seem useless.
Re (tilly) 6: Code Critique tries to give an overview of why templating is good, what you need to do to make it succeed, and what you can hope for from it if it succeeds. Unfortunately it tends to be the case that you can hear all of the advice in the world but it won't "digest" properly until you've actually tried it in practice and you have some experience to put it into context. So the first time you try to use templating to clean up your code you probably won't realize the benefit that people talk about getting - but you will get the experience to be able to figure out what you could do differently to get a better benefit next time. (Which is still valuable. Plus you'll likely still get some benefit.)