Re: Strict types



Treefrog wrote:
Once upon a time, PHP was a scriting language, but it's more than that
now. For example, I'm currently working with a 500,000 line 100% PHP
application. Because 95% of it is built on poor coding, it's nearly
impossible, certainly futile to try to impliment standards into it. I
was just trying to think of/ask for ways in which situations like this
can be stopped in the future. Which, I think needs to happen for PHP's
future. I've worked in quite a few places, and with quite a few other
developers, and they seem to agree; PHP code is nearly always messy
crap.

But it doesn't have to be.

I'm not so sure about that. Large Perl programs (and even many small programs) are nearly always messy crap. I believe it's a natural property of languages that have weak or loose typing, do not require you to declare variables, and do not have a separate compilation step. These kinds of languages are often called scripting languages <http://en.wikipedia.org/wiki/Scripting_languages>.

Perhaps there is a way to make scripting languages more suited for large applications. Discussion of how to do that may be beyond the scope of a post in a PHP newsgroup, however.
.



Relevant Pages

  • Re: Loose dogs, having fun
    ... I know several scripting languages including ... PHP again with over 5 years work experience. ... career looks, ...
    (rec.pets.dogs.behavior)
  • Re: Stop hotlinking to a specific file & keeping a counter
    ... I am totally new to PHP, and other web scripting languages; I am coming for windows application developer. ... My level of server scripting is about zero, I tend to do a hatch job of it. ... Once I have time I am thinking of delving deeper into HTML, XHTML, CSS and then PHP. ...
    (comp.lang.php)
  • Re: Another scripting language implemented into Python itself?
    ... >> Python, or Perl, or TCL, or Ruby, or PHP, ... > Not PHP. ... There are a lot of existing scripting languages to pick from. ... wasted both in the initial implementation and in the conversion effort, ...
    (comp.lang.python)
  • Re: Questions about versions of VS (Standard, Professional)
    ... I would use Linux except that this program has to run on Windows. ... PHP except that I hate scripting languages, ... And it plays well with mysql. ...
    (microsoft.public.vsnet.general)
  • Re: Templating, or can I do this in php?
    ... When desigining websites I would use SSI ... to interface with perl programs for dynamic content, ... I am now working in php and would like to continue this process, ... create the webpages in a WYSIWIG and then either add php tags on parts ...
    (comp.lang.php)