|
Posted by RageARC on 09/27/07 20:27
On 27 Sep, 17:09, "Steve" <no....@example.com> wrote:
> "RageARC" <rage...@gmail.com> wrote in message
>
> news:1190902180.451714.139430@d55g2000hsg.googlegroups.com...
>
> >I use other people's libraries often, but I never had libraries
> > clashing with each other because of that, so I don't understand what's
> > the fuss about. An example:
>
> >http://www.petitiononline.com/phpns/
>
> > Quote:
> > "We implore you to add support for Namespaces in the next possible
> > release and to not wait until PHP6."
>
> > This is what I don't understand! Why people are so crazy about it.
>
> isolation...a key aim in oop in any language. it helps php know what
> resource you're wanting. if you've ever worked on a project with a couple of
> other developers, did you ever have it happen that a DEFINE was done with
> the same name as another was using? you probably found out when both
> resources were used at the same time (i.e. one script calling two classes,
> each doing the define). namespaces help avoid things like that - as someone
> said, collision.
For Database Servers it would be nice to have a namespace for each
server, and all the functions names in all of them would be exactly
the same (Come to think of it, that would be awesome xD), what would
change would be the namespace:
MYSQL::connect...
:)
> Gosh, how stupid can you be that you don't know people in web discussion
> groups can get crazy?
> What - are you a Communist? ;)
>
> No - seriously.
> Consider the source - PetitionOnline.com.
> It's site for crusaders, not engineers.
> It might as well say - CrackpotsAreUs.com
Duh, I know that, just the fruit of a quick google search. You google
it :). And no I'm not a Communist.
Navigation:
[Reply to this message]
|