Re: Strict types
- From: Steve Chapel <schapel@xxxxxxxxxxxxx>
- Date: Thu, 30 Mar 2006 15:36:17 GMT
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.
.
- References:
- Strict types
- From: Treefrog
- Re: Strict types
- From: Steve Chapel
- Re: Strict types
- From: Treefrog
- Strict types
- Prev by Date: Re: Does a fopen with 'b' mode suppress magic_quotes_runtime ?
- Next by Date: Re: PHP HTML Form mail question
- Previous by thread: Re: Strict types
- Next by thread: Re: Strict types
- Index(es):
Relevant Pages
|