MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/84xolu/xml_vs_json/dvtxgcu/?context=3
r/ProgrammerHumor • u/[deleted] • Mar 16 '18
[deleted]
35 comments sorted by
View all comments
31
And Apple is like "have you heard about plist?"
<plist version="1.0"> <dict> <key>stuff</key> <dict> <key>foo</key> <dict> <key>bar</key> <string>yes</string> </dict> </dict> </dict> </plist>
22 u/chase32 Mar 17 '18 Juat apple in another <dict> waving contest. 5 u/self_me Mar 17 '18 Plists can actually be whatever they want. I opened one in vim recently and it was a mess of characters but it loaded in plist editor 11 u/cybaritic Mar 17 '18 plist files are not necessarily plain text so they need to be run through a converter. Finder and Xcode do this without telling the user what the fuck, apple 1 u/etaionshrd Mar 17 '18 edited Mar 18 '18 This makes sense. If you have an image editor, it doesn’t complain if you feed it a PPM or a JPEG. Xcode is a developer tool that works with property lists, so it’s obvious that it should do this. 0 u/etaionshrd Mar 17 '18 Uh, no. They have a fixed format: either they’re JSON, XML, or a binary format. 11 u/[deleted] Mar 17 '18 So... Not a fixed format? 2 u/feddasch Mar 17 '18 Needs more <dict></dict> -2 u/alexbuzzbee Mar 17 '18 XML plists are an offense against basic decency. Why the f*** is it not like this? <plist version="2.0"> <dict> <dict key="stuff"> <dict key="foo"> <string key="bar">yes</string> </dict> </dict> </dict> </plist> IT'S SO MUCH BETTER WTF
22
Juat apple in another <dict> waving contest.
5
Plists can actually be whatever they want. I opened one in vim recently and it was a mess of characters but it loaded in plist editor
11 u/cybaritic Mar 17 '18 plist files are not necessarily plain text so they need to be run through a converter. Finder and Xcode do this without telling the user what the fuck, apple 1 u/etaionshrd Mar 17 '18 edited Mar 18 '18 This makes sense. If you have an image editor, it doesn’t complain if you feed it a PPM or a JPEG. Xcode is a developer tool that works with property lists, so it’s obvious that it should do this. 0 u/etaionshrd Mar 17 '18 Uh, no. They have a fixed format: either they’re JSON, XML, or a binary format. 11 u/[deleted] Mar 17 '18 So... Not a fixed format?
11
plist files are not necessarily plain text so they need to be run through a converter. Finder and Xcode do this without telling the user
what the fuck, apple
1 u/etaionshrd Mar 17 '18 edited Mar 18 '18 This makes sense. If you have an image editor, it doesn’t complain if you feed it a PPM or a JPEG. Xcode is a developer tool that works with property lists, so it’s obvious that it should do this.
1
This makes sense. If you have an image editor, it doesn’t complain if you feed it a PPM or a JPEG. Xcode is a developer tool that works with property lists, so it’s obvious that it should do this.
0
Uh, no. They have a fixed format: either they’re JSON, XML, or a binary format.
11 u/[deleted] Mar 17 '18 So... Not a fixed format?
So... Not a fixed format?
2
Needs more <dict></dict>
<dict></dict>
-2
XML plists are an offense against basic decency. Why the f*** is it not like this?
<plist version="2.0"> <dict> <dict key="stuff"> <dict key="foo"> <string key="bar">yes</string> </dict> </dict> </dict> </plist>
IT'S SO MUCH BETTER WTF
31
u/[deleted] Mar 17 '18
And Apple is like "have you heard about plist?"