in reply to Re^6: Are there any issues with JSON
in thread Are there any issues with JSON
I would seriously recommend against XML. While I agree it won’t be going away for this stuff, it should. It’s easy to get XML wrong or to make it fit a particular cognitive bias for what data should look like. Or to pile on schemata and namespaces and make a beast so goofy it requires a manual to formulate a basic API request and parse the results.
JSON is nude Arrays, Hashes, Strings, Integers, and Booleans. It is what it is and it’s UTF-8. I would *never* use XML as the serialization or data layer in a project if I had the choice. And I resent the hoops through which I have to jump due to it being every Java hackers first choice.
Ajax was only XML at first, hence the “x.” Today hardly anyone is doing it in anything but JSON. It wasn’t a corporate agenda that did that, it was path of least resistance and fewest bugs.
More than KISS, I’d say use the abstractions that abound. There are a couple dozen *excellent* JS kits now that take away the pressure of having to deal with browser nonsense. There are as many nice CSS templates which will gracefully adjust to monitor size, be it a phone or a cinema display. The guts of a CMS can be written in Catalyst/REST or Mojo or Dancer or Amon2 or… in a week by anyone who has experience; mix in Oauth2 or something and you don’t even have to keep formal user accounts or manage password issues. A beginner might need three months…and that includes getting help when necessary, but it is worth it and doing it on your own means you become more employable should you choose to go that route.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Are there any issues with JSON
by taint (Chaplain) on Jun 04, 2014 at 23:24 UTC | |
|
Re^8: Are there any issues with JSON
by taint (Chaplain) on Jun 05, 2014 at 02:01 UTC | |
by Anonymous Monk on Jun 06, 2014 at 01:54 UTC | |
by taint (Chaplain) on Jun 06, 2014 at 02:50 UTC | |
by Anonymous Monk on Jun 06, 2014 at 03:05 UTC | |
by Anonymous Monk on Jun 06, 2014 at 05:03 UTC | |
|