Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I just hate to see stuff like this. It makes me cringe.

    What was wrong with Google's lovely simple XML interface, where you simply replaced the word "search" for "xml" in the querystring, and got nice XML back detailing everything such a SOAP response would? (you can no longer do this without paying for the service, but I believe it's still there) Do we really need the SOAP layer on top of this? Is plain HTTP and a smattering of XML really that much harder than an API?

    I feel like such an old fart when I se
    • Re:I can't stand it. (Score:3, Interesting)

      by pne (661) on 2002.04.08 3:40 (#6730) Homepage Journal
      I just hate to see stuff like this. It makes me cringe.

      When you said that, I first thought you were referring to this lovely bit of API:

      soap.addMethodWithSOAPAction('doGoogleSearch', ns, 'key', 'q', 'start',
                                  'maxResults', 'filter', 'restrict',
                                  'safeSearch', 'lr', 'ie', 'oe')
      r = soap.doGoogleSearch(key, query, 0, 10, false, nil, false, nil,
                              'latin1', 'latin1')

      12 arguments to the first method with no indication of what any of them are for; then the second one has "false, nil, false, nil" and you have no idea WTF is going on.

      Some sort of named parameter passing would have been better, I think -- use a hash or something, or even just something like '-source', 'foo', '-dest', 'bar'.

      Esli epei eto cumprenan, shris soa Sfaha.
      Aettot ibrec epesecoth, spakhea scrifeteis.

      • I think that first part of the incantation is priming the Ruby SOAP interface, not part of the google interface itself. And the arguments to the second were what was named in the first call (some sort of key, the query itself, start at result 0, return 10 results, don't filter results, no clue :), adult search filter off, no clue, input encoding, output encoding).