Re: Fw: PHP question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alain Williams am Donnerstag,  1. Januar 1970 - 01:00:
> On Tue, Aug 26, 2014 at 11:53:48AM +0100, Baber wrote:
> > Hi
> > 
> > 
> > 
> > Apologies if I have sent email to the wrong address. 
> > 
> > I have a very simple question regarding PHP i.e 
> > 
> > Does coding in PHP in procedural way (not object oriented) is still market standard and not obselete?
> 
> You do not say why you ask the question, that will affect how we reply.
> 
> I suspect that you want to know what you should learn so that you can get a job
> -- or something similar.
> 
> Yes: many programs are procedural, however you will need to learn how to USE
> libraries written using OO methods.
> 
> Writing effective OO does take some time to get your head around - if you do
> more than just write prodedural code wrapped up in a simple object.
> 
> -- 
> Alain Williams
> Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
> +44 (0) 787 668 0256  http://www.phcomp.co.uk/
> Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
> #include <std_disclaimer.h>

:-) Hi Allan!

I'm an old scool procedural guy. OO, I think, is good for programmers, not for computers.
Personaly I established a nice library of includes, containig carefully written functions (and sometimes just variables), usable in wide range of tasks. I include them, if they are needed, and they do the same job as classes do. (Classes are collections of functions and varaibles.) But with NO overhead I have seen so often in classes looking brillant at first glance.

Of course I use the built in PHP-classes and objects. But to be honest, even those are often overloaded. It happens, that I need just some value, and I'm forced to instantiate a class providing an endless list of functions I actually do not need. 

Compare the old date() an mktime() functions and the actual date class!

But after all, web hosters install strong hardware, do as you like it :-)

Niklaus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux