PHP USB Device to solve namespace problems

November 3rd, 2008 | by Stefan Esser |

Now that the PHP namespace seperator is fixed as backslash developers around the world face two problems. On the one hand their source code will end up looking more ugly than .NET source code and on the other hand most non-american keyboards, especially those attached to apple computers will require strange key combinations to enter the backslash.

However rescue is near in the form of a USB device that allows you to enter the backslash character in a smooth and easy way. First pictures of this device that will be available at shop.php.net around christmas have leaked to the internet.

This should finally shut up all the namespace seperator critics and allow the PHP developers to finally release the long awaited PHP 5.3

  1. 26 Responses to “PHP USB Device to solve namespace problems”

  2. By Peter Petermann on Nov 3, 2008 | Reply

    ROFL!
    <3 <3 <3 <3

  3. By Martin Stricker on Nov 3, 2008 | Reply

    Can’t stop giggling (with tears in my eyes).

  4. By Dynom on Nov 3, 2008 | Reply

    Brilliant, just brilliant.

  5. By Ivo on Nov 3, 2008 | Reply

    so how have people been typing the \ on windows all those years then?

  6. By Thorsten on Nov 3, 2008 | Reply

    Ivo, they clicked the path with their mice. ;-)

  7. By Peter Petermann on Nov 3, 2008 | Reply

    Ivo: uhm… windows users on apple computers? uhm.. FAIL!?

  8. By Tobias Struckmeier on Nov 3, 2008 | Reply

    Georgeous. I will order 10 :)

  9. By Michael Campbell on Nov 3, 2008 | Reply

    And depending on how you orient the device, you can get a “/” from it too!

  10. By xrado on Nov 3, 2008 | Reply

    why don’t they rather break backwards compatibility in version 6 and make cleaner & simpler syntax

    ..i’m already thinking to switch to something else

  11. By John Minor on Nov 3, 2008 | Reply

    ROTFL OMG I must have one!

    Jiff
    http://www.iurlz.com/datools

  12. By Tom Ritchford on Nov 3, 2008 | Reply

    Ha ha ha.

    So you really don’t understand why most people think that using \ - a character that has a very specific and very important use in character strings already - is a very stupid idea?

  13. By Stefan Esser on Nov 3, 2008 | Reply

    @Tom:

    Great idea… Let’s continue the discussion and remove multiplication and concat from PHP. Because inside a regular expression string both * and . are used for something different, we cannot use them outside.

    Let us find new tokens for multiply and concat.

  14. By Peter Petermann on Nov 3, 2008 | Reply

    lets multiply with x

  15. By jerryF on Nov 3, 2008 | Reply

    That and this one and you’re all set

    http://www.stopgeek.com/super-coder-2000.html

  16. By jeez on Nov 3, 2008 | Reply

    alt-gr + 8 … how complicated….

    when you live here you’re used to it (no # { [ | \ ^ @ ] } € without that on my keyboard…)

    \ is a lame choice for a namespace separator, but still, now would be a good time to get over it and stop whining for stupid reasons)

    –Jeez

  17. By Stefan Esser on Nov 3, 2008 | Reply

    @jeez:

    This “stop whining” phrase is kind of useless against a non PHP programmer. Most of the code I do is in languages different from PHP, like C, C++ or Java. Therefore I am not hit by the namespace decision at all.

    This will however not stop me from making fun of the worst choice made by the PHP developers in a long time.

  18. By Hodicska Gergely on Nov 3, 2008 | Reply

    :D:D:D

  19. By blblblb on Nov 3, 2008 | Reply

    Uhum, I’ve worked with both c# and php, imo “.net code” is a helluva lot cleaner than php.

  20. By David M on Nov 4, 2008 | Reply

    Don’t mind the backslash myself, but I’d totally buy this device. Especially if it doubled as a coffee cup warmer…
    I’m just glad they didn’t go with :::.

    :::My::Lib::get(’something’); //see what’s wrong?

    Mind you, it’ll end up with a fatal error anyway, but the problem is still hard to spot.

  21. By greg on Nov 4, 2008 | Reply

    ???? .NET Code is a lot cleaner

  22. By Me on Nov 4, 2008 | Reply

    This is just par for the course with PHP. There is not a single feature of the language that isn’t flawed in some manner or other. Even it’s wide-spread deployment just floods the intertubes with incompetents wanting you to write their code for them.

  23. By giuliano on Nov 4, 2008 | Reply

    .NET code looks ugly? So what are you going to argue that Python looks good?

  24. By GeeShus on Nov 6, 2008 | Reply

    Briliant toy gadget to buy as present for person who’s whining about \.
    Atleast brilliant idea to someone to make and sell them.

    jeez wrote alt-gr + 8 … how complicated….
    On my scandic keyboard it’s [AltGr]+["11"], that’s rightside of [0] having +,?,\

    People who can write 10-finger method are whining this. ‘So hard to press right thumb [AltGr] and then [+] (”11″) with pinky/ring finger.’
    But, also when keyboard is not having [AltGr] key, pressing [Alt]+[Ctrl] with left hand does same thing, and use any finger from your right hand to press number needed.

    Google words
    edit keyboard layout
    First hit gives official method for windows user to create anykind of keyboard layout. Move that \ key anywhere you like it.

    Also problems exists on ‘most non-american keyboards’!
    There is (windows) language settings clicking by mouse on toolbar, or even easier for 10-finger-writers, press LeftAlt+Shift and it’s cycling the keyboard layouts. So switching from US keyboard to your own language, when you need to write non-coding-sentences that are not English.
    LeftAlt+Shift can also be modified!

    That thing is about 10cm = 4″ by sides.
    Takes lotsa space for totally useless thing. Just a joke to give someone.
    I’ve seen these gluable fake buttons to keyboard, usally red, printed ‘Any Key’.
    That gadget printed with that, could be more usable to give person who’s fetching that button on normal keyboard. ‘ Press Any key to continue’

  25. By Stefan Esser on Nov 6, 2008 | Reply

    @GeeShus:

    The Zimt PHP Namespace Enabler Pro is obviously a fake. It was a cheap 1 minute job in livequartz.

    It is shocking how many people take this seriously :)

  26. By Barmaley on Dec 6, 2008 | Reply

    Interestingly, a special stand to consolidate on the keyboard to the “device” does not sell? Dollars per 200 …

  1. 1 Trackback(s)

  2. Nov 3, 2008: Dev Blog AF83 » Blog Archive » Veille technologique : OpenID, PHP 5.3, CouchDb, Y!OS

Post a Comment