On Tue, 29 Jun 2004 15:18:34 -0600, Jayce^ <[EMAIL PROTECTED]> wrote:
> 
> On Tuesday 29 June 2004 01:10 pm, Daniel Crookston wrote:
> > What I'm wondering is this - what is it about PHP that gives it the rap of
> > not being a "real" programming language?
> 
> For me, I do have a few issues with PHP.
> 
> 1) is that most the people who use it tout how much easier/more readable it is
> than perl.  The problem is, the syntax is actually still very much like Perl,
> because that's what it started from.

I must admit I don't know perl but I can read python, java and tcl and
I really have a hard time reading perl. I know php and work with it
day and night but I don't think I can read perl. Does it mean that php
is more readable than perl? you tell me. (BTW, python beats both hands
down on this)

> 2) that it's more readable because of it's embedded nature.  Frankly, I detest
> the way php encourages you to mix logic and presentation (yes there are
> templating system now) by default.  This is a very very bad idea.

Sorry, but the language does not encourage you to do anything in any
which way. Is it less line of code to do it that way? Yes. Do you call
that encouragement? I don't. I call it lazyness.

> 3) Narrowed scope.  By stripping out all features of Perl to make a new
> language, it must be better.  Personally, even if I'm not using some of Perls
> features in a web page, great, I still like having them for working on
> non-web apps (yes, there are things other than html).  And somehow, php must
> better at web apps because that's all it was designed for (Professional Home
> Pages).  Excuse me, but other languages built on their existing strengths to
> become even more powerful in the web environment.  If you like PHP's style,
> you can use Mason or Embperl and be just as powerful.  Or look at something
> like Maypole, TTK, Axkit in perl or Struts, or tapestry in Java.

There is a saying in spanish: "El que mucho abarca poco aprieta". You
try to cover too much you end up doing it poorly, sorta. PHP is great
for web development. Do you want to cook up a site horrendously in 30
minutes, you can, you can take all the shortcuts the language gives
you. Do you want to use all the complex patterns you can think off,
you can, there are plenty of examples (WACT, my own framework, etc).
BTW, if you like Mason or Embperl you can use Smarty, Flexy, Savant,
etc. What is your point? That perl can do all that php can do? Umhh,
doh! The question is, which one do _you_ like the best? Which one
comes the easiest for you? I guess that's the real question.

> 4) Application server vs. Code based web pages.  php subscribes to the
> paridigm that many web people use, that you can make code do dynamic things
> do your page.  But there is another view, where the page isnt' the center
> point of your web system.  Where you can harness an application server, and
> break code into more logical elements, each doing specific tasks on their
> own.  Neither is the best for everything, but you should know, and be able to
> use both methods, and php doesn't.

Sorry, but again, either your knowledge of the language is limited or
you go by what a lot of people do and not what can be done. Even
without considering PHP5, I have built applications that solve
business problems using a framework that, IMHO, use the best and more
useful patterns that Java fanatics boast about. And all that in lowly
PHP. And I must admit that I probably wouldn't do it the way I do were
it not for the knowledge I have gained working with Java, TCL and
Python in the different projects I have worked before.

I don't mean to be cocky or start a fight or anything. I'm just tired
of people treating a language so simple and powerful that has allowed
me to do so much in a despective way.

Sincerely,


Adrian Madrid


> Just a few of my views.
> 
> --
> --
> Jayce^
> 

-- 
Adrian Esteban Madrid
[EMAIL PROTECTED]

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to