Flutterby™! : There are legitimate uses for 50

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

There are legitimate uses for 50

2013-12-07 23:36:06.910123+00 by Dan Lyke 3 comments

There are legitimate uses for 50 calibre belt fed machine guns and for JavaScript. Consider carefully which end of both you'd want to be on.

[ related topics: Guns ]

comments in ascending chronological order (reverse):

#Comment Re: made: 2013-12-08 14:46:59.698841+00 by: meuon [edit history]

Adding XML to the list: Just spent an hour hand coding for an arcane SOAP XML gateway, that returned the actual data, deeply embedded in an XML format, lines of CSV with the lines wrapped in "val" like: <val>123456,2013-12-08T09:00:00.0000000-05.00,596,kWh,,,,,, </val>

So I get to parse the XML, then parse the CSV.. Laughing .

#Comment Re: made: 2013-12-08 21:53:23.89343+00 by: meuon [edit history]

Blew a day trying to fake an older .Not system into talking to PHP using PHP's built in SOAP, then tried NuSoap, then gave up and completely faked it with hand coded responses. Doing it the wrong way: < 1 hour.

NuSoap, while not well documented was pretty easy to use, although I had to alter the behavior of some things in nusoap.php to reply like other system seemed to want. It still didn't handle some of the call-backs from the other system like it wanted.

#Comment Re: made: 2013-12-09 18:42:29.696561+00 by: Dan Lyke [edit history]

People keep talking about XML parsers, but given that XML is rarely actually complaint compliant XML, regex parsing and sprintf generation seems to work better.


At least JSON more directly maps to useful internal datastructures...