| 
	
 | 
 Posted by Toby A Inkster on 07/25/07 09:41 
Sanders Kaufman wrote: 
 
> In your case, every time my object is initialized, it would make TWO  
> function calls, instead of one - one to the constructor, and one to the  
> init(). 
 
http://www.google.co.uk/search?q=premature+optimisation 
 
For heaven's sake, this is a *database* class. The overhead of an extra 
function call is the *least* of your worries. 
 
Whenever you have to choose between code efficiency and readability, 
choose readability: development time is more expensive than CPU time. 
 
--  
Toby A Inkster BSc (Hons) ARCS 
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux] 
[OS: Linux 2.6.12-12mdksmp, up 34 days, 13:16.] 
 
                           Cryptography Challenge 
         http://tobyinkster.co.uk/blog/2007/07/24/crypto-challenge/
 
  
Navigation:
[Reply to this message] 
 |