You are here: Re: OO PHP « PHP Programming Language « IT news, forums, messages
Re: OO PHP

Posted by Malcolm Dew-Jones on 11/15/05 08:05

Erwin Moller (since_humans_read_this_I_am_spammed_too_much@spamyourself.com) wrote:
: Smitro wrote:

: > Hi all,
: >
: > I have spent the last couple of days getting my code up to scratch with
: > PHP 5 and MySQL 5. (I still don't quite understand why we had to change
: > to mysqli from mysql)
: >
: > Just a question, Object Orientated PHP? Is it the way that PHP is
: > heading, or is it just an addon for those that want to use it.
: >
: > I started using php because to me it made so much sence. When I look at
: > the example of Object Orientated PHP I get totally lost. Do I have to
: > start looking at moving all my code this way, or is this just an addon
: > for those that are use to coding in this way? What are my chances of
: > running procedual code in PHP 6?

: Hi,

: Stay cool. :-)
: You CAN use OO if you want, but nobody is forcing you to do so.
: Many hackers like PHP the way it is, and do not use OO.

: Because OO offer some very serious advantages, you can expect to see more
: OO-PHP-code, but of course it is up to you if you want to use it.

: And PHP is not heading in a direction that forces you to use OO, it is just
: offering you the option.

: Mind however that many usefull add-ons, like PEAR, are coded in an OO
: fashion.

For the most part, you don't need to "know" OO to use OO libraries.

To use most libraries, OO is just a syntax,

$value_returned_earlier->useful_function_name(my,args,go,here);

Someone said that they like OO, but you have to realize that at some point
in the code, every OO program does plain old procedural programming.

If you are tying things together, and they happen one step at a time, then
procedural code is the thing you need.

Many tasks are best solved one step at a time, possibly using libraries
(which may be OO) to take care of the arcane details.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация