• 14 Posts
  • 5.26K Comments
Joined 3 years ago
cake
Cake day: June 12th, 2023

help-circle



  • Having to make a decision isn’t my primary issue here (even though it can also be problematic, when you need to serialize domain-specific data for which you’re no expert). My issue is rather in that you have to write this decision down, so that it can be used for deserializing again. This just makes XML serialization code significantly more complex than JSON serialization code. Both in terms of the code becoming harder to understand, but also just lines of code needed.

    This is, without a doubt, the stupidest argument against XML I’ve ever heard. Nobody has trouble with using attributes vs. tag bodies. Nobody. There are much more credible complaints to be made about parsing performance, memory overhead, extra size, complexity when using things like namespaces, etc.

    I’ve somewhat come to expect less than a handful lines of code for serializing an object from memory into a file. If you do that with XML, it will just slap everything into child nodes, which may be fine, but might also not be.

    No - it is fine to just use tag bodies. You don’t need to ever use attributes if you don’t want to. You’ve never actually used XML have you?

    https://www.baeldung.com/jackson-xml-serialization-and-deserialization













  • I found the kids hiding in an interior hallway of a fully dark apartment. They were scared to let me turn the lights on because la migra (ICE) might be outside. ICE had been banging on the front door of their building ten minutes ago, so they weren’t being unreasonable. And they were right. La migra was loitering in the area. ICE was also, unfortunately, on the block where the mother was sheltering.

    Jesus, shades of Anne Frank’s Diary…

    The little ones were understandably confused about why this big white guy was in their house, and they wanted to show me all their things.

    🥹