News for hackers. Stuff that matters.
Re:The Pain That Is GitHub Actions by fergie on Thursday March 20, 2025 @03:50AM (#43420637)
As a developer based in Norway, one fairly major drawback to YAML is the way that it processes the language code for Norwegian ("no").
Re:The Pain That Is GitHub Actions by marcusramberg on Thursday March 20, 2025 @06:08AM (#43421355)
That particular pain was fixed in yaml 1.2 :)
Re:The Pain That Is GitHub Actions by withinboredom on Thursday March 20, 2025 @11:45AM (#43424855)
TIL I learned that yaml has versions and now I'm wondering what version of yaml parsers are running where. I think I might be on a new level of hell.

It would be better to delete your comment so nobody else has to has to ever have this crisis.

Re:The Pain That Is GitHub Actions by LeonM on Thursday March 20, 2025 @06:20AM (#43421420)
The Norwegian ISO3166 code colliding with the English word 'no' is not a YAML problem per se, I've been bitten by that a few times in other situations as well.

For example: Stripe uses constants for types of tax registration numbers (VAT/GST/TIN, etc.). So there is EU_VAT for European VAT numbers, US_TIN for US tax identification numbers, etc. But what value to use for tax-exempt organisations that don't have a tax number? Well... guess how I found out about NO_VAT...

On the bright side, I did learn that way that although Norway is in the Schengen zone, apparently they are not part of the EU (hence the separation of EU_VAT and NO_VAT). I guess the 'no' name collision has taught many developers something about Norway :-)