Jonathan Wight on Nostr: Reminder that just because you can it doesn’t mean you should. “Config as code” ...
Reminder that just because you can it doesn’t mean you should.
“Config as code” is a bug not a feature.
Config should be easy to reason with and understand. Being forced to run the code to understand what the configuration is, is a huge failure.
Package.swift should have been something like TOML (or whatever) with a suitably expressive schema instead…
https://chaos.social/@ole/114381265023437618Published at
2025-04-22 14:44:33 UTCEvent JSON
{
"id": "8a60015cd215feea99c59b08b8e8c231dbff137d907aaa9d8d5aa118e66abb1e",
"pubkey": "347df37f7e37f09b1810c16bc19c5fb74d47c2c7bfbe297eec961b626d6f4358",
"created_at": 1745333073,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/schwa/statuses/114382148327614502",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "Reminder that just because you can it doesn’t mean you should.\n\n “Config as code” is a bug not a feature.\n\nConfig should be easy to reason with and understand. Being forced to run the code to understand what the configuration is, is a huge failure.\n\nPackage.swift should have been something like TOML (or whatever) with a suitably expressive schema instead…\nhttps://chaos.social/@ole/114381265023437618",
"sig": "6615d22d861778035b25cc71fb312806db5b4f1e8cd5cb52f5c5a6c74507cdf0c15eb2206986cc3d8d6da0a247a369b338b4e698aabb664d18d43493039f3b52"
}