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.

11 points

(Holocene or) Human Era calendar

That would represent all human history as one.

permalink
report
reply
4 points
*

And also, the Dekatrian calendar

Where we would have a less broken, more regular, year calendar that is almost align with the moon cycle.

permalink
report
parent
reply
3 points

Oh many years ago in school I created something like that for an arts/creative writing project once, a calendar with 12, 30 day month based on sailor moon. Having it based on a magical girl manga gave me the freedom to declare the rest of the days to “days of evil” Was a fun project because I created a whole religion around it. 😁

permalink
report
parent
reply
4 points

That sounds interesting, would most likely not be very popular with lots of people and a pain in the butt to implement but interesting.

permalink
report
parent
reply
2 points

There’s a cool video from In a Nutshell about it some years ago.

permalink
report
parent
reply
5 points
*
Deleted by creator
permalink
report
reply
2 points

Very much the same. I was terrified of regex, now I love it

permalink
report
parent
reply
3 points

What resource did you use to master it? As every time I have to use regex I want to cry.

permalink
report
parent
reply
0 points
Deleted by creator
permalink
report
parent
reply
6 points
*

Unicode editors for notes/todo formats, making markup unnecessary.

permalink
report
reply
2 points

Does unicode have bold/italics/underline/headings/tables/…etc.? Isn’t that outside of its intended goal? If not, how is markup unnecessary?

permalink
report
parent
reply
9 points
*

Does unicode have bold/italics/underline/headings/tables/

Yes, and even 𝓈𝓉𝓊𝒻𝒻 𝕝𝕚𝕜𝕖 🅣🅷🅘🆂. And table lines & edges & co. are even already in ASCII.

Isn’t that outside of its intended goal?

🤷<- this emoji has at least 6 color variants and 3 genders.

If not, how is markup unnecessary?

Because the editor could place a 𝗯𝗼𝗹𝗱 instead of a **bold**, which is a best-case-scenario with markdown support btw. And i just had to escspe the stars, which is a problem that native unicode doesn’t pose.

permalink
report
parent
reply
4 points

What about people who prefer to type **bold** rather than type a word, highlight it, and find the Bold option in whichever textbox editor they happen to be using?

permalink
report
parent
reply
9 points

AV1 video codec !

permalink
report
reply
2 points

I’ll add JXL if we’re doing codecs

permalink
report
parent
reply
14 points

TOML instead of YAML or JSON for configuration.

YAML is complex and has security concerns most people are not aware of.

JSON works, but the block quoting and indenting is a lot of noise for a simple category key value format.

permalink
report
reply
16 points

TOML is not a very good format IMO. It’s fine for very simple config structures, but as soon as you have any level of nesting at all it becomes an unobvious mess. Worse than YAML even.

What is this even?

[[fruits]]
name = "apple"

[fruits.physical]
color = "red"
shape = "round"

[[fruits.varieties]]
name = "red delicious"

[[fruits.varieties]]
name = "granny smith"

[[fruits]]
name = "banana"

[[fruits.varieties]]
name = "plantain"

That’s an example from the docs, and I have literally no idea what structure it makes. Compare to the JSON which is far more obvious:

{
  "fruits": [
    {
      "name": "apple",
      "physical": {
        "color": "red",
        "shape": "round"
      },
      "varieties": [
        { "name": "red delicious" },
        { "name": "granny smith" }
      ]
    },
    {
      "name": "banana",
      "varieties": [
        { "name": "plantain" }
      ]
    }
  ]
}

The fact that they have to explain the structure by showing you the corresponding JSON says a lot.

JSON5 is much better IMO. Unfortunately it isn’t as popular and doesn’t have as much ecosystem support.

permalink
report
parent
reply
-1 points

You’re using a purposely convoluted example from the spec. And I think it shows exactly how TOML is better than JSON for creating config files.

The TOML file is a lot easier to scan than the hopelessly messy json file. The mix of indentation and symbols used in JSON really does not do well in bigger configuration files.

permalink
report
parent
reply
1 point

JSON5

Nice. I mostly use Qt JSON and upon reading the spec, I see at least a few things I would want to have out of this, even when using it for machine-machine communication

permalink
report
parent
reply
15 points

YAML is complex and has security concerns most people are not aware of.

YAML is racist to Norwegians.

If you have something like country: NO (NO = Norway), YAML will turn that into country: False. Why? Implicit casting. There are a bunch of truthy strings that’ll be cast automagically.

permalink
report
parent
reply
2 points

What in tarnation

permalink
report
parent
reply
-2 points

That’s “country-ist”. Nothing to do with the genes of people living over there.

permalink
report
parent
reply
1 point

True, but that sounds boring.

permalink
report
parent
reply
2 points

People bitch about YAML but for me it’s still the preferred one just because the others suck more.

TOML like said is fine for simple things but as soon as you get a bit more complex it’s messy and unwieldy. And JSON is fine to operate on but for a config? It’s a mess. It’s harder to type and read for something like a config file.

Heck, I’m not even sold on the S-expressions compared to yaml yet. But then, I deal with so much with all of these formats that I simply still prefer YAML for readability and ease of use (compared to the others.)

permalink
report
parent
reply

Programming

!programming@programming.dev

Create post

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



Community stats

  • 3.1K

    Monthly active users

  • 1.8K

    Posts

  • 30K

    Comments