view the rest of the comments
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
I wish we would all start switching over to JSON for configuration files. It's so much easier to parse, and you can't screw it up with too many spaces or not enough.
No thanks. Yaml isn't perfect but by God json is best used to return and parse data, not input it.
My biggest peeve with JSON when I'm forced to use it as a configuration format is that it doesn't have any syntactical support for comments.
So I can't even add any notes to the file.
Yea, this is a deal breaker imo. My code tends to be 10 to 1 comments to lines of code ratio. Configuration even more so.
jsonc/json5 exists for this use case, but few tools actually use it, yaml is far more popular
No support for comments? Hard pass
Yeah, this is my biggest annoyance with JSON. As a data structure it's very elegant, but it only really makes sense to people who know how to code, and without the ability to add comments you have to rely heavily on external documentation to make it readable to most users.
And like yeah, both the wonderful (and foss!)
.json5
and Microsoft's semi-proprietary(?).jsonc
exist, but most projects just use their language's default JSON parser that doesn't recognize them. What I would personally love to see is.json5
support baked into the default JSON parsing libraries of Python, Go, etc. (Enabled by a flag, likely.) It's a superset of regular JSON and fully ES2019 compatible, so there shouldn't be any issues.Instead you can screw it up by having too many commas or not enough. Hardly that much of an improvement.
It's IMO also so much clearer regarding data types. You can't accidentally write a boolean when you want a string.
Why not just write your YAML files in JSON syntax?
JSON is a valid subset of YAML