4 ms·
this is not merely a display, it is really a sanitation of the brain-damaged json syntax.
by enriquto 7y ago
this is not merely a display, it is really a sanitation of the brain-damaged json syntax.
- gridlockd 7y agoYour opinion is bad.
- enriquto 7y agojson will be mocked in a few years by the same people that today mock xml. In the end, unix always survives.
- krapp 7y ago"unix" isn't a file format, nor is it in competition with either XML or JSON, so claiming it will "survive" either is a meaningless boast.
- brennebeck 7y agoWhile I don’t disagree with you, if you look at the comment above this you’ll see @enriquto mentions just dumping lists to a text file. Pretty sure that’s what was implied by ‘unix’: use a simple text file that is dumped to the fs that can be easily parsed by standard tools on any Unix-like.
- imtringued 7y agoPeople mock xml because it's an over complicated mess with too many features.
- gridlockd 7y agoJSON is usually mocked by people who don't get to use Javascript objects natively. The benefits aren't obvious or tangible to them. XML is native to nothing. It's annoying to use everywhere. UNIX tools just don't compare. Sure, they stick around, because sometimes they're the easiest tool for some job, until they aren't and you regret starting out with them. In a few years, Javascript and Javascript-compatible languages are likely to be bigger than ever before. A whole generation of developers has been trained mainly on them. Billions of dollars have been invested into the ecosystem. Whether we like it or not, that's the reality. For that reason alone, JSON will stick around.
- Sohcahtoa82 7y agoWhat method would you use to serialize data structures into a format that is both easily read and written by both a computer and a human?
- enriquto 7y agoIn the very rare cases that you really need to serialize complicated data structures, something like s-expressions or (gasp) json, or even a memory dump is perfectly appropriate. However, most of the times your data structures should be lists of numbers or lists of strings. For those, you do not really need a "format", you can simply print and scan them from a text file.
- derrikcurran 7y agoI have never once heard this opinion of JSON. JSON is a breath of fresh air. I'm really struggling to imagine what sort of software you work on.
- enriquto 7y agoIf you come from xml hell, then yes, json may even seem a reasonable option. But if you are used to the terse beauty of printf and scanf, then a json file looks like bad sarcasm.