PHP Gets Namespace Separators, With a Twist
jeevesbond writes "PHP is finally getting support for namespaces. However, after a couple hours of conversation, the developers picked '\' as the separator, instead of the more popular '::'. Fredrik Holmström points out some problems with this approach. The criteria for selection were ease of typing and parsing, how hard it was to make a typo, IDE compatibility, and the number of characters."
where is it?
Going back to DOS style...
No; DOS used the backslash as a directory separator (since- apparently- someone had permitted forward slash to be a legal filename character before subdirectories had been introduced).
AFAIK PHP uses the forward slash for that purpose (or does this depend upon the server/OS it's running under?) Either way, namespaces have nothing to do with the infamous DOS usage.
"Slashdot - News and Chat Sites Deviant". (Click "homepage" link above for details).
Well, DOS didn't really have namespaces and this is a nice improvement of PHP. Namespaces has some disadvantages, it doesn't scale very well and it allows inconsistent nameing conventions but this increases developer's freedom.
OK, yes Python is better than PHP but they're both a pain in the ass for the web/text based world of web development. I mean really, both PHP and Python are not that much easier to use than just writing a program in C/C++. Things like regular expressions are stupidly annoying to use (compare to Perl or Lua+LPeg). I don't even get the point of Python because it's a slow scripting language with almost all the verbose complexity of a compiled language. Just weird.
Unfortunately there aren't a lot of options. Perl isn't all that great because while it's awesome at the usability and text processing part it's not so good from a structured design point of view. It's difficult to design complicated software in Perl. Plus Perl is basically dead since they decided to start that idiotic Perl 6 project that will never be finished (and even if it is I'm sure it will suck).
My personal choice would be something like Lua with LPeg and a nice large supporting library. I know the Kepler project does work in this space but their stuff isn't anywhere near as nice as what is available in PHP and Perl API's. Their designs are just odd because they approach things from a Lua point of view instead of a web developer point of view.
Seriously, I mean WTF! It is a scripting language for fucks sake, why does it matter to you what they use? If you use the language, thats the deal, if you don't then use whatever C clone you like, there are plenty of them out there, or better yet, just program in C, why screw around with all the intermediate shite? You can write smaller, more compact & light weight server side programs in C then you can for just about anything else.
Scripting languages are for convenience, nothing more nothing less. Anything you can do in ANY scripting language be it Perl, Python, PHP, Rails or whatever, pick any of them, you can build faster, smaller and better programs in C.
Native binary languages for *nix system have all the same goodies in them just written at lower levels and you have to do a little work, or god forbid, some memory management, a horrific thought I know, but what do you think all this stuff is written in? Uhmm mostly C or its bastard stepchild, C++
Scripting languages are for those of a weak mind and poor technical skills and the singular lack of the ability to plan a system out before you write one line of code.
Hey KID! Yeah you, get the fuck off my lawn!
The mirrors have less to do with uptime and more to do with attempting to reduce the bandwidth usage of wikipedia. Think of it as a donation towards hosting costs.
look retard, I'm going to kick you in the nuts, punch you in the head, and piss in your fucking mouth. While you're lying on the ground in a pool of blood, vomit, and urine , maybe you can think about what an ignorant douchbag you are. Now fuck off.