- 0 Posts
- 111 Comments
tgmto Showerthoughts•Eventually, coffee moves from a drink that gets you going to an emotional support drink.English43·2 months agoWhy not both?
I agree with some of the points made in the article, but I think a reason JSON won it is that it is directly representable in many languages. As the author mentions, JSON makes dictionaries, which has native types in most, if not all, languages I have used and languages like JS/TS and Python have native support for JSON.
So interpreting a JSON string is easier and doesn’t necessitate a custom type, while allowing for it. Both TS and Python (3) do have static analysis and type checking for JSON, with some limitations.
The final point I feel the other missed is that JSON and by extension YAML is more concise and therefore more readable, even in a terminal or console where syntax highlighting might not be available. In my experience the speed at which humans kan parse DTOs increase troubleshooting and development.
That said they do mention several use cases where I agree that XML is a better tool, but I still believe that JSON is the better general purpose tool. If your model for DTOs is tight and well defined XML may well be the better option and JSON does have some significant drawbacks, but not enough that I would start my project out using XML unless I know I will need to compose XML files or enforce strict type checking.
In my, albeit limited, experience using XML the time saved on type checking DTOs is spent on writing and maintaining serializers and deserializers. Thus the benefit of one tool over the other depends on the use case.
I feel like I am mission6 some context. The Trump pedo connection is obvious, but is she a pedo women for protecting him or did something more sinister come to light?
What does self-determination mean in this context?
I only casually follow SC2 eSports anymore. What does IMBA mean this context?
tgmto Showerthoughts•In a sense, China has successfully seized the means of production, and they don't even need to start a revolution for it.English141·9 months agoAre you saying nothing new is produced/invented in China? They publish plenty of scientific papers and develop plenty of things, so I am a but unsure of what you mean
tgmto Europe@lemmy.ml•There is a panic in the EU because it is not known where to get the money — MEPEnglish23·9 months agoRemoved by mod
tgmto The Guardian - US@rss.ponder.cat•'Daddy has to sometimes use strong language': Nato chief on Trump's Israel-Iran outburst – videoEnglish1·10 months agoIs this real? It sounds like an The Onion article
Can’t make this shit up
Huh, very interesting!
Are persimmons and crabs poisonous or was Yeongjo accused of poisoning the food?
Context : King Yeongjo was accused of assassinating his brother with crab and persimmons to become next king. Is a bit unclear on this detail
tgmto Ukraine@sopuli.xyz•EU considers stripping Hungary of voting rights over Ukraine obstructionEnglish6·1 year agoPlease do, or kick them out. It is fair to expect some level of alignment as requirement for membership
Hungary seems less and less like a Europe aligned country. I cannot figure out if they have a shit governance or if this is rige sentiment of the people
I once had a dream where an ex followed mene around explaining in detail how she cheated on me. In hele real world she didn’t, so I woke up with a feeling of “wow, thanks brain, that was unnecessary.”