Mark, I'm ok with all that. I was just guessing wether or not procedural code was faster than classes in a web environment. In a workstation environment you can easily compile you classes as DLL's or equivalent to the system and cache them (you can also do that with web environment but you need to have your own server!). This causes calls to the classes to be much more faster.
I'm fine with all you said... specially people being lazy with their SQL. We too often see "select * from table" then a loop in the recordset to find a specific record where the whole thing could have been done using a where condition in the SQL itself! Paul > -----Original Message----- > From: Mark M [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 10:40 PM > To: [EMAIL PROTECTED] > Subject: [wdvltalk] Re: [PHP/ASP] Class v/s Procedural > > > > But later I turned down to classes since those > > offer more advantages and are easier to manage. But are they faster > > and do they really provide performance increases? > > Personally I've always been taught 2 things > > (1) Sofware design is more important than anything else > (2) Make it work first, then optimise. > > If you have good software design, you develop faster, and its > cheaper to do.. and > the rest of those good things. > > If you develop something that works, then find the bottlenecks, > then you actually > KNOW where the bottlenecks are, rather than guessing. > > Sure there are plenty of little tips and tricks you do during > coding to make stuff a > bit faster... but just just because you could write everything > inline and make it run > faster? Would you? hell no.. can't read it worth diddley squat. > > Final comment - your BIGGEST slowdown on a site is your Database > Queries. If > you want to make things optimised, work there. Cache your > queries, design your > DB better, and write concise SQL that does ALL the work you need > it to, without > having to get your code (ASP, PHP, whatever) to do any additional work. > (I have a pet peeve about this... people are lazy with their SQL) > > Hope that makes sense. > > Feel free to disagree ;o) > > Mark > > ----------------------------------- > [EMAIL PROTECTED] > ICQ: 3094740 > Safe From Bees > [www.safefrombees.com] > > ____ � The WDVL Discussion List from WDVL.COM � ____ > To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] > Send Your Posts To: [EMAIL PROTECTED] > To change subscription settings to the wdvltalk digest version: > http://wdvl.internet.com/WDVL/Forum/#sub > > ________________ http://www.wdvl.com _______________________ > > You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] > To unsubscribe send a blank email to %%email.unsub%% > > ____ � The WDVL Discussion List from WDVL.COM � ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
