this post was submitted on 21 Feb 2025
92 points (96.9% liked)

Programming

18422 readers
603 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

The word, used by computer scientists to mean ‘no value,’ has created long-running challenges

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 16 points 1 week ago* (last edited 1 week ago) (8 children)

I've seen XML parsers that will convert element content from strings to native types by default. So "0" becomes an int, "true" becomes a boolean, and "null" becomes an actual null. I had to take extra steps to keep everything as a string unless explicitly told not to.

JSON does not have this problem, BTW.

[–] [email protected] 9 points 1 week ago (7 children)

I don't think anyone actually chooses XML. There's no reason to use it over JSON unless you need to.

[–] [email protected] 14 points 1 week ago (1 children)

The entirety of the banking world uses XML very heavily, as it's part of the SWIFT standards.

[–] [email protected] 8 points 1 week ago

I didn't say that it's not used. I say that you shouldn't if you have the option.

If the entire X world uses Y technology. You have no choice other than using Y technology.

load more comments (5 replies)
load more comments (5 replies)