On Fri, Aug 3, 2012 at 10:23 AM, Lester Caine <les...@lsces.co.uk> wrote:

> Yahav Gindi Bar wrote:
>
>> Maybe I'm wrong when comparing with other languages and mainly with
>> ASP.NET(C#) since they've used it for web proposes but I did saw many
>>
>> classes that used this feature and personally really like it.
>>
>
> If ASP is so good why is it loosing market share?
> Personally I'm pulling all the ASP sites I've inherited to PHP simply
> because the basic work flow in them is so bad.
> And on some of the inherited PHP sites we have this peculiar concept of
> having to write a 'controller' for a new page, and then another PHP file
> with the content. But then am I 'old fashioned' using smarty, templating
> and storing all the content in a database? This idea of 'controllers' and
> 'interfaces' does not seem to produce a viable work flow to me, and
> certainly unravelling the code is a pain :(
>
> You may understood me in the wrong way - I'm not try to say that ASP.NETis so 
> good and make comparison in the negative way or something like that,
PHP is a different language with its own great pros and that's why I've
decided to join these discussions and try to help improving it to be even
better. I just saw a feature in C# which exists in other languages (I've
used Objective-C which got it, and I read that Python and Ruby also got it)
so I think it'll be great to have this ability too built-in in PHP, that's
all. As I've said earlier - without this ability built-in
many potential developers, and of course frameworks and software developers
can't relay on this feature.


>  I've suggested to improve the language itself with some of the features in
>> runkit, not to copy and use it as is.
>>
>
> People don't use half of the facilities that PHP already has so why start
> introducing concepts that make that even more difficult. Once again ... we
> need to explain a lot better how to write 'good programs' using what is
> currently available without loading the core down with even more eye candy
> that few people will ever understand fully. I'm still for stripping more
> stuff back to PECL and coming up with a good 'old fashioned' simple
> beginners version of PHP to which the eye candy only needs adding once one
> understands the basics ...
>
> I don't think we can, even if we want, to teach beginners how to write
"good programs" or good-practice programs - there'll always be beginners
who'll create programs using bad-practice approaches and they'll improve by
the time, I guess... We can make the documentation better, but that's
a different thing (though take into account that many beginners even don't
know how to understand the documentation and point their questions to
support forums). For example, I know many beginners who don't know about
many built-in functions in PHP (even basic ones, array_map, strpos etc.), I
don't think that if we got an idea of function that can be useful for the
majority of the PHP community that we shouldn't include it because
beginners won't know about it or how to use it - being a beginner always
result in not know or understand features...

I think that the result of this way of thinking is restricting advance
programmers while beginners could stick with the basic features of PHP,
leaving the advance concepts until they'll be ready to learn them.

Reply via email to