Re: PHP or COLDFUSION

From: Matthew Woodward (mpwoodward_at_hotmail.com)
Date: 11/10/03


Date: Mon, 10 Nov 2003 07:20:23 -0600

On 11/10/03 3:58 AM, in article 3FAF613A.9070807@fastmail.fm, "Terence"
<tk.lists@fastmail.fm> wrote:

> Lester Horwinkle wrote:
> If all you want is some basic forms in a largely static site, the CF is
> the way to go, not because it's "clickier", but because it's a piece of
> cake to slap up some <cfquery/> and <cfoutput/> tags -- very useful
> stuff indeed.
>
> For larger apps, PHP is ideal because it has the ease-of-use of a
> scripting language, but the behaviour potential of an OO language --
> allowing you to do some decent modelling.

You say that as if you can't do OO programming in CF, which you certainly
can. CF is far more capable than mere form processing on simple sites. I
do a lot of PHP programming as well, and have done OO programming with PHP
on several projects, and your characterization of PHP as OO while CF is not
isn't accurate. I'd prefer not to get into the argument of "which is more
OO" which we've had here before; my point is that in large part CF is just
as OO as PHP, and in some cases (e.g. the way objects are handled
internally) CF is better than PHP, so arguing PHP's superiority based on its
OO capabilities isn't really a valid argument. Both languages allow you to
do object modeling equally well, and IMO using objects in CF is a lot less
klunky than it is in PHP. Based on what I've read about PHP 5 it looks like
they're fixing a lot of things so I'll definitely check that out for my next
PHP project, but you're selling the OO capabilities of CF (and the
capabilities of the language in general) very short in your
characterization.

Matt

-- 
Matthew Woodward
mpwoodward@hotmail.com


Relevant Pages

  • Re: Scottish Devs
    ... basically 1 static site (design already done) - an easy ... job, and 1 static site + a bit of PHP, breadcrumb, site search - it's ... if you have the time free. ... You may want to take a look here to see if you find qualified PHP ...
    (php.general)
  • PHP Template Function
    ... I have just been assigned to a project to convert a large static site to ... I have used PHP for small jobs in the past, but most of my work has ... Embperl::Object would look for template files in the current ...
    (php.general)
  • Re: What Next?
    ... Thanks Peter and everyone who responded, ... create webpages: First, proprietary pages for myself, and second, webpages ... since I want to be able to draw graphs from php. ... of programming and the software ...
    (comp.lang.php)
  • Re: PHP as a secure language? PHP worms? [was: Re: new linux malware]
    ... _Programming Languages: Concepts and Paradigms_ he defines some of the paradigms of programming languages; on pp 12-13, ... This book is classic but doesn't list Perl or PHP or Java -- but the concepts are the same. ...
    (Bugtraq)
  • Re: What is the learning curve for PHP?
    ... I was thinking about learning PHP, ... write scripts that produce client applications like Java? ... I have experience with procedural programming in C, ... PHP is a much higher level language than C. ...
    (comp.lang.php)