this post was submitted on 02 Sep 2024
136 points (100.0% liked)

Programming

423 readers
3 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 !webdev@programming.dev



founded 1 year ago
MODERATORS
 

There are a couple I have in mind. Like many techies, I am a huge fan of RSS for content distribution and XMPP for federated communication.

The really niche one I like is S-expressions as a data format and configuration in place of json, yaml, toml, etc.

I am a big fan of Plaintext formats, although I wish markdown had a few more features like tables.

you are viewing a single comment's thread
view the rest of the comments
[–] mox@lemmy.sdf.org 90 points 2 months ago* (last edited 2 months ago) (7 children)

ISO 8601 date format. Not because it's from a standards body, but because it's simple, sensible, clearly defined, easy to recognize, and very effective.

Date field placement in any order other than most-significant-digits-first is not only counterintuitive, but needlessly complicated to work with. Omitting critical information like the century is ambiguous and confusing.

We don't live in isolated villages any more. Mixing and matching those problems by accepting all the world's various regional and personal date styles, especially with no reliable indication of which ones apply in any given case, leads to the hodgepodge of error-prone date madness that we have today.

The 2024-09-02 format should be taught in schools and required in official documents. Let the antiquated date styles fall into disuse outside of art and personal correspondence, like cursive writing.

[–] The_Decryptor@aussie.zone 10 points 2 months ago* (last edited 2 months ago) (1 children)

RFC 3339 is a simplified profile of 8601 that only covers YYYY-MM-DD style formatting, if you only ever use that format and avoid the things like "2024-W36" they're mostly interchangeable.

[–] sxan@midwest.social 1 points 2 months ago

The week-of-year is far more relevant in Western Europe, and is used quite a bit in business. I have a Junghans watch that has a week complication.

It's an important format outside of the US, and gives ISO-8601 an edge as a standard of conformance.

[–] driving_crooner@lemmy.eco.br 10 points 2 months ago

I had the fortune of being hired to build up from zero my department, and one of the first "rules" I made was all dates are ISO-8601 and now every process runs with 8601, if you use anything different your code is going to fail eventually when it finds another column date in 8601.

[–] NostraDavid@programming.dev 4 points 2 months ago (2 children)
[–] mox@lemmy.sdf.org 1 points 2 months ago (1 children)

That looks like an interesting diagram, but the text in it renders too small to read easily on the screen I'm using, and trying to open it leads to a javascript complaint and a redirect that activates before I can click to allow javascript. If it's yours, you might want to look in to that.

The table below works, though. Thanks for the link.

[–] NostraDavid@programming.dev 1 points 2 months ago

Alas it's not my site (and I think it's meant to be read on a desktop screen), so I can't fix it.

[–] ulterno@lemmy.kde.social 0 points 2 months ago

7 digit years feels way to optimistic, but I'll be rooting for us.

[–] caturra@lemmynsfw.com 2 points 2 months ago

I arrived to manage releases in a company, the previous manager named releases as "release04092016", as USA standard. My first recommendation was to name releases as "releaseyyyymmdd" so "release20160409". I was asked by another manager why to change that, so I showed her a sorted list of releases "git branches" and asked her, can you tell me there when was the last release? (a very common question) Of course, to find the last release you need to check the whole list because the mmddyyyy order is useless. The answer with yyyymmdd was immediate, just look at the last row.

[–] Remavas@programming.dev 1 points 2 months ago

Some countries already use it officially too :)

[–] DarkMetatron@feddit.org 1 points 2 months ago

The year is the information that most of the time is the least significant in a date, in day to day use.

DDMMYY is perfect for daily usage.

[–] ulterno@lemmy.kde.social 0 points 2 months ago

Also, you can sort by ascending file names