News for hackers. Stuff that matters.
Re:Pitfalls of Helm – Insights from 3 yrs with the leading K... by pas on Friday December 15, 2023 @06:29AM (#38653089)
if only whitespace was treated as such visually, and the IDE would serialize to whatever the repository uses, and similarly for YAML-JSON.

> Now that terrible text editors won

yes. but not all hope is lost, maybe AGI helps/wipes us out!

Re:Pitfalls of Helm – Insights from 3 yrs with the leading K... by happymellon on Friday December 15, 2023 @07:18AM (#38653395)
Considering that we lost tabs because some peoples text editors and web browsers rendered them as 8 spaces, and drew the wrong conclusion, I don't have much hope for your plan.

However I would be completely on board if we could agree on a formatting configuration file that people could check into a repo for IDEs to pick up.

Re:Pitfalls of Helm – Insights from 3 yrs with the leading K... by turboponyy on Friday December 15, 2023 @08:03AM (#38653737)
I think we've mostly agreed on editorconfig[1], though it doesn't concern itself with language-specific formatting - it's even built into a lot of editors.

For language-specific formatting, you can run formatters in pre-commit-hooks and CI. Treefmt[2] can help with that if you want to cover a lot of languages in your repo.

1. https://editorconfig.org/

2. https://github.com/numtide/treefmt

Re:Pitfalls of Helm – Insights from 3 yrs with the leading K... by happymellon on Friday December 15, 2023 @09:59AM (#38654804)
I'll have to check out EditorConfig.

It looks like IntelliJ supports it, so that could cut down on the amount of work required to get it in a project.