this post was submitted on 04 Jul 2025
163 points (98.2% liked)

Programmer Humor

24772 readers
945 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] raman_klogius@ani.social 15 points 1 day ago* (last edited 1 day ago) (2 children)

Why you shouldn't use YAML

[–] Damage@feddit.it 20 points 1 day ago

The best approach would be to never use yaml for anything

[–] BodilessGaze@sh.itjust.works 5 points 1 day ago

YAML doesn't require any level of accuracy for floating point numbers, and that doc appears to have numbers large enough to run into problems for single-precision floats (maybe double too). That means different parsers could give you different results.