× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




<snip>

If it is really the full Perl 5 regular expressions, it is very powerful
:) Enjoy :D

Nope, it's not the full regular expressions. What I'm saying is that the "un-fullness" has never seriously affected me.

<snip>

I am not saying I am _RIGHT_ or anything like that, just that that is -
based on my Java experiences with Class.forName instead of using "new" -
the large amount of work done by the compiler that makes the program
resilient against casual changes.

If you are looking to dynamically create objects then there is a simple way to do it in PHP. I've not used Class.forName() but I think this does the same thing.

$class = 'User';
$userObj = new $class(); // Creates a new instance of User


You say you _can_ state the type, but is this actually what is being
done in large programs? Would you expect that a program was well typed
if you didn't write it yourself?

You can state the type for objects and arrays. You don't have to, but you can and should. I probably write my code in a more structured manner than a lot of PHP developers, but a good portion of them are really starting to take architecture seriously and building well defined class, interfaces and such... and actually FOLLOWING a defined architecture. PHP has a bit of a reputation as a fly-by-night language. Some of that is deserved but new applications are being built much better than even just 2 years ago. So, yes. I'm seeing a lot of new development following proper OO patterns, more or less.


I am as I said genuinely curious about this :)

Excellent! Curiosity kills only cats.

Kevin



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.