Re: Need advices in choosing approach



On Dec 17, 10:34 am, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:

On Dec 16, 7:25 pm, The Natural Philosopher <a...@xxx> wrote:

For this reason I tend to take a "mostly OO" approach. I put as much
code as possible in classes, but simple utility code that might be
needed anywhere in the package in unreleated classes may just end up
in standard functions.

While it seems to be logically fine to code using both procedural and
OO to mix around, but which methodology it is actually refering to?

I prefer an OO approach. I can do things more quickly in OO than most
procedural programmers. And the larger a project grows, the more I find
I reuse OO code. OTOH, I see comparatively little reuse of procedural
code (unless you count copy/paste).

Thanks for the great input.

Basically, to sum up, I supposed that PHP is a hybrid language, just
like C++, you can code in procedural and revert back to OO whenever
you like, of course not considering the code maintenance or reuse.
Will that be a serious problem in PHP just like 'do C++
procedurally' ?

Sorry if this question sound stupid.
.



Relevant Pages

  • Re: Need advices in choosing approach
    ... needed anywhere in the package in unreleated classes may just end up ... I reuse OO code. ... Will that be a serious problem in PHP just like 'do C++ ... Yes, PHP is a hybrid language - it started out as a procedural language, but is acquiring more and more OO features with each release. ...
    (comp.lang.php)
  • Re: Need advices in choosing approach
    ... needed anywhere in the package in unreleated classes may just end up ... I reuse OO code. ... Simply because that's the way I learnt programming and I don't have the time in smaller projects to do the necessary design work for OOP. ...
    (comp.lang.php)
  • Re: How to make mod_lisp faster than php?
    ... > can keep a socket open and reuse it to get even more speed. ... You only have to be able to force to code in PHP for a couple ... [For those stuck behind apache]. ... transactions per seconds, well, then this test becomes irrelevant. ...
    (comp.lang.lisp)
  • Re: Need advices in choosing approach
    ... but simple utility code that might be ... needed anywhere in the package in unreleated classes may just end up ... in standard functions. ...
    (comp.lang.php)
  • Re: not able to find the mysqli.dll
    ... The issue is that you $mysqli is a function not a class. ... to reuse this function then it is worth making it into a class. ... Search for object orientated programing in php, ...
    (comp.lang.php)