top | item 23078327

(no title)

no_gravity | 5 years ago

PHP has a lot going for it. It is popular, fast, has a nice syntax and a ton of useful functionality baked right into the language.

The main weakness I see in PHP is the lack of modules. PHP provides namespaces to avoid name conflicts. First of all, that does not completely root out naming conflicts. The developer who puts a namescpace into their code can only hope that it does not clash with someone else's.

Secondly, it makes it necessary that both, the code that provides reusable functionality and the code that uses it have to deal with the issue of namespaces.

A module system like Python and Javascript have is superior to this. Then only the user of the reusable code decides where to put it into the namespace.

discuss

order

No comments yet.