[Info-vax] systemd (was Re: openvms and xterm)

Arne Vajhøj arne at vajhoej.dk
Fri Apr 26 08:26:12 EDT 2024


On 4/25/2024 11:03 PM, Matthew R. Wilson wrote:
> On 2024-04-25, Lawrence D'Oliveiro <ldo at nz.invalid> wrote:
>> On Sun, 21 Apr 2024 19:18:19 -0400, Arne Vajhøj wrote:
>>
>>> The 3 most widely formats for config files today are XML, JSON and YAML.
>>
>> No, those are mainly used for data interchange, not so much for config
>> files (apart from XML).
> 
> JSON and YAML are incredibly common for config files for newer software.
> I've not really seen YAML used as a data interchange format, in my
> experience it exists almost entirely to be a more human-friendly
> alternative to JSON for configuration.

Yep.

Some like it. Some don't like it. But a huge part of new stuff use
YAML for config.

>>> But INI and Java properties may be the next 2 in usage.
>>
>> “Java properties” isn’t a file format.
> 
> https://en.wikipedia.org/wiki/.properties
> 
> https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/Properties.html#load(java.io.Reader)
> 
> The Java properties file format is well-defined and, not surprisingly,
> used heavily by Java applications. I've been out of the Java world for a
> while, but in the 2000s, properties files were definitely in use for
> configuration files for many applications I ran and worked on.

It is still used.

Java added the preferences API back in 1.4 (2002), but few
likes that - too complex, too weird.

So most use either a properties file or a XML file (and with
class binding XML file requires very little code).

Arne





More information about the Info-vax mailing list