News for hackers. Stuff that matters.
Re:Disrespectful Design – Users aren’t stupid or lazy by jchw on Sunday September 13, 2020 @02:42PM (#24462955)
Programming tools should work this way because we write code; config files are effectively code that doesn't execute (or sometimes does.) A lot of the config files we use (think stuff like: gitignore, eslint/babel configuration, Dockerfiles, package.toml, etc.) we version into source control so that we can track changes over time. I can't think of a good UI that would make editing these files better; VSCode probably has done the best by providing autocompletion in YAML and JSON files using JSONSchema.

Text files aren't perfect, but they're hard to beat. It's not like the hardest part of programming is actually syntax, anyways. You can always improve on this by providing better assisted editing.

If there's anything I'd actually want it would be for software to have pluggable configuration so I can instruct it to pull its configuration from a database or something along those lines.

edit: and on that note, it’s probably the command line interface that actually would strongly benefit from some consideration. CLI arguments are currently a flat unstructured list... but almost everything at least has key value pairs.

Re:Disrespectful Design – Users aren’t stupid or lazy by hansvm on Sunday September 13, 2020 @03:51PM (#24463435)
> I can't think of a good UI that would make editing these files better

Alternative views into those same text files would be nice. You could color-code the type of a snippet (yaml string/float issues) or nested blocks. You could offer a graph view of dependencies (context-dependent -- could be services, function calls, modules, docker base images, etc...).

Text files are nice (and I've yet to see anything that would be a good replacement for most uses), but that doesn't mean we can't offer extra tooling/views into that data when it would be more convenient.