Re: Fw: PHP question
| From: | Domain nikha . org | Date: | Thu, 28 Aug 2014 01:21:24 +0000 |
| Subject: | Re: Fw: PHP question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-323801@lists.php.net to get a copy of this message | ||
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