News for hackers. Stuff that matters.
Re:RFC 9512: YAML Media Type by WorldMaker on Wednesday February 21, 2024 @11:19AM (#39455721)
I've always used .yaml and have never understood why someone would choose .yml. Three letter extensions haven't been a requirement since like DOS 5 and I can't imagine that many developers are both using YAML and still using FAT16 but can't afford VFAT long filename entries.
Re:RFC 9512: YAML Media Type by cesarb on Wednesday February 21, 2024 @01:00PM (#39457180)
> I've always used .yaml and have never understood why someone would choose .yml.

Because it's what the documentation says. For instance, the "Getting Started" example at https://docs.flatpak.org/en/latest/first-build.html says "call it org.flatpak.Hello.yml" - and that's Flatpak, which has always been a Unix-specific thing.

Re:RFC 9512: YAML Media Type by o11c on Wednesday February 21, 2024 @01:13PM (#39457332)
.yml is similar to .xml
Re:RFC 9512: YAML Media Type by deathanatos on Wednesday February 21, 2024 @03:24PM (#39459005)
… but YAML ain't a markup language.

(That's the 'A', in YAML, literally.)

Re:RFC 9512: YAML Media Type by BerislavLopac on Wednesday February 21, 2024 @03:53PM (#39459390)
That's a backronym; originally it meant "yet another".
Re:RFC 9512: YAML Media Type by deathanatos on Wednesday February 21, 2024 @09:28PM (#39462426)
The current acronym is old enough to drink. The original acronym, AFAICT looking through The Wayback Machine, lasted less than a year. (The original language was pretty wildly different, and much closer to a markup language.)

For those that don't want to wait for the time capsule, here is the earliest example of it (I've shortened it from the original for brevity; best I can gather this should also have been valid):

  <timesheet.clarkevans.com:record>
    <person:record>
      <id:int>
        293945</id:int>
      <name:record>
        <given>
          Clark</given>
        <family>
          Evans</family></name:record></person:record>
  </timesheet.clarkevans.com:record>
You can feel the XML influence.

Oddly it kept the "Another" well into the evolution of not being a markup language anymore, but on the grand scale of things, didn't really keep it that long.

Re:RFC 9512: YAML Media Type by arp242 on Wednesday February 21, 2024 @01:55PM (#39457904)
Old DOS "8.3" restri~1 are still followed by some people. Force of habit I suppose? Also the docume~1 or examples of some projects use .yml and I can't be bothered to experi~1 if both work, because it doesn't really matter.
Re:RFC 9512: YAML Media Type by quectophoton on Wednesday February 21, 2024 @03:40PM (#39459209)
> have never understood why someone would choose .yml

Probably for the same reason people don't type other 4-letter extensions, like `.ruby` or `.rust`.

I guess `.java` is the exception (no pun intended).