Monday, January 5, 2009

Code by Prescription

A friend of mine is a doctor. Whenever someone comes to him with a problem, he checks them and in some cases he gives them a prescription for something that might help. The reasons that he has to give a prescription is simple; The society wants to make sure that only qualified personel can administer possibly harmful substances and we want to limit the chances of overdoses. The is why you only get a limited amount of medicine per perscription.

I'm just thinking, wouldn't it be great if we had something called code prescriptions? Not for tecniques that are simple, but for those that requires more advanced skills to master without increasing the complexity of the solution.

Wouldn't it be great to be able to give a prescription of "one dependency injection" or "ten linq queries, only to be taken in pairs" ? :-)

Happy new year everyone, let's make this year the best so far!