What an idiot.
- 0 Posts
- 92 Comments
tgm@lemmy.worldto News@lemmy.world•‘I Genuinely Am Upset That Your Kids Are Vaccinated’English9·1 month ago
tgm@lemmy.worldto Showerthoughts@lemmy.world•Eventually, coffee moves from a drink that gets you going to an emotional support drink.English43·2 months agoWhy not both?
I too, am confused.
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.
tgm@lemmy.worldto Political Memes@lemmy.world•Petty woman also would work hereEnglish102·6 months agoI 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?
tgm@lemmy.worldto Palestine@lemmy.ml•Zionists: "Israel is not an Apartheid." Israel:English2·9 months agoWhat does self-determination mean in this context?
I only casually follow SC2 eSports anymore. What does IMBA mean this context?
It’s a 40k reference
tgm@lemmy.worldto Showerthoughts@lemmy.world•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
Where can I buy one?
tgm@lemmy.worldto Europe@lemmy.ml•There is a panic in the EU because it is not known where to get the money — MEPEnglish24·9 months agoRemoved by mod
tgm@lemmy.worldto News@lemmy.world•Trump Posts AI-Generated Image of Himself Dressed as the PopeEnglish13·11 months agoCan’t make this shit up
tgm@lemmy.worldto [Dormant] moved to !roughromanmemes@piefed.social@lemmy.world•Subtle treason (AnonHistory)English2·11 months agoHuh, very interesting!
tgm@lemmy.worldto [Dormant] moved to !roughromanmemes@piefed.social@lemmy.world•Subtle treason (AnonHistory)English3·1 year agoAre 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
tgm@lemmy.worldto 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
tgm@lemmy.worldto Saturday Morning Breakfast Cereal [Moved to discuss.online]@midwest.social•2005-10-16English2·1 year agoThanks for context
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.”