zquirm
6 Nov 2006, 11:06 AM
I love your way of organizing code and you seem to have a system in terms of creating it. I was wondering if you might make a post about creating clean code.
for instance, why you would say:
Example = new function() {
return { }
}
rather than:
Example = {
this.something = a;
}
var test = Example;
I know the above are different. I'd just like to know in what case you use certain types of code structure.
does that make sense?
for instance, why you would say:
Example = new function() {
return { }
}
rather than:
Example = {
this.something = a;
}
var test = Example;
I know the above are different. I'd just like to know in what case you use certain types of code structure.
does that make sense?