Re:Why the fuck are we templating YAML? (2019)
by da39a3ee on Tuesday January 23, 2024 @09:58AM
(#39104141)
Your problem, and I mean this sincerely and respectfully, is that you're not using your text editor / IDE correctly. Adding two or four spaces of indentation is done by pressing TAB! Once. Most editors will do know how to do this out of the box, but if yours doesn't you need to change it.
[ Parent
| on HN ]
Re:Why the fuck are we templating YAML? (2019)
by wkat4242 on Tuesday January 23, 2024 @12:21PM
(#39106351)
You still have to mess around with a bunch of spaces when you're editing or copy/pasting, and not having exact even numbers makes for ambiguous situations.
Especially if something is 5 levels deep, it's really hard to see if you have 12 or 11 spaces (so 5 levels + 1 space or 6 levels) indentation.
Re:Why the fuck are we templating YAML? (2019)
by kadoban on Tuesday January 23, 2024 @02:43PM
(#39108648)
This is not true in a correctly configured editor.
Re:Why the fuck are we templating YAML? (2019)
by wkat4242 on Tuesday January 23, 2024 @08:59PM
(#39112698)
How so?
Re:Why the fuck are we templating YAML? (2019)
by kadoban on Wednesday January 24, 2024 @10:02AM
(#39118119)
My editor, I press tab once and it inserts the correct number of spaces (on a new line it also starts at the previous indentation level as appropriate). I press backspace once and it deletes the correct number of spaces.
Any editor used for programming needs to be capable of this.