Re: Json.php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# otto.wyss@xxxxxxxxxx / 2007-04-16 14:03:55 +0200:
> Jochem Maas wrote:
> >
> >that's going to make it completely impossible to use then isn't it.
> >no way you could possibly wrap the class/objects functionality in a wrapper
> >function.
> >
> At the moment it's sufficient, since I've now time to figure out how the 
> Json package can be installed. Then I can switch to use the usual 
> json_encode function. Thanks.

What I don't understand is why you're going from a general interface

  $someObject->decode($string); # if it quacks like a JSON decoder...

to a narrow one:

  json_decode($string); # you either have the function or you're screwed.

Tight coupling -> inflexible code.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux