Christian Mayer's Weblog

Don't repeat yourself with programming

Top #1 rule of programming:

Don’t repeat yourself.

But why do I need to type the following lines in every new web project?

<?php
function debug($var){
	print '<pre>';
	var_export($var);
	print '</pre>';
}

Posted on .
Categories: Programming, Productivity
Tags: DRY, Dont repeat yourself, Don't repeat yourself, Project, Web, WebProject, var export, var dump

Categories | RSS Feed | Usage
| Imprint Copyright © 2006 by