Re:Why the fuck are we templating YAML? (2019)
by fatnoah on Tuesday January 23, 2024 @09:55AM
(#39104109)
At one of my internships in the 90's, a developer I worked with solved the problem by never indenting. Every single line of code started at column 1.
Re:Why the fuck are we templating YAML? (2019)
by alemanek on Tuesday January 23, 2024 @11:09AM
(#39105247)
It sounds like this is the origin story of Python. Whoever worked with this person made it their life’s mission to enforce proper indentation.
Re:Why the fuck are we templating YAML? (2019)
by throwaway_08932 on Tuesday January 23, 2024 @10:15AM
(#39104432)
Sounds like you were an indent-ured labourer.
Re:Why the fuck are we templating YAML? (2019)
by wkat4242 on Tuesday January 23, 2024 @12:09PM
(#39106179)
True, that's how real coders work!
10 IF A=1 OR Z=2 GOTO 30
20 GOTO 50
30 PRINT "HELLO WORLD"
40 GOTO 10
50 GOTO 30
Re:Why the fuck are we templating YAML? (2019)
by swader999 on Tuesday January 23, 2024 @10:15AM
(#39104424)
Why even use more than one line?
Re:Why the fuck are we templating YAML? (2019)
by solardev on Tuesday January 23, 2024 @11:02AM
(#39105151)
Why not just make everything whitespace? Give both tabs and spaces their rightful place! https://en.wikipedia.org/wiki/Whitespace_%28programming_lang...
Re:Why the fuck are we templating YAML? (2019)
by otteromkram on Tuesday January 23, 2024 @11:14AM
(#39105315)
Why did you leave an empty column at the start? :]
Re:Why the fuck are we templating YAML? (2019)
by BrandoElFollito on Tuesday January 23, 2024 @04:27PM
(#39110111)
In my PhD on the 90's this is how people were forced to choose with FORTRAN. I chose to code in C and it was painful as well, but less.
I would have given a lot to have the environment people have today to do science.
Re:Why the fuck are we templating YAML? (2019)
by wwweston on Tuesday January 23, 2024 @11:20AM
(#39105406)
I thought the consensus was tabs for block indentation, spaces for alignment.
Re:Why the fuck are we templating YAML? (2019)
by Arelius on Tuesday January 23, 2024 @11:38AM
(#39105711)
No, that's what the tabs hold-outs have morphed into. Which illustrates the problem with tabs: It's very difficult to get everyone on a team to care about tabs or not care about alignment.
Re:Why the fuck are we templating YAML? (2019)
by secondcoming on Tuesday January 23, 2024 @11:46AM
(#39105842)
No, significant whitespace is the problem.
Re:Why the fuck are we templating YAML? (2019)
by andybak on Tuesday January 23, 2024 @12:54PM
(#39106915)
So - you're saying that mixing tabs and spaces in the same file is entirely unproblematic outside of languages with significant whitespace?
Are you sure about that?
Re:Why the fuck are we templating YAML? (2019)
by secondcoming on Wednesday January 24, 2024 @09:14AM
(#39117560)
mixing tabs and spaces just makes code look bad visually. But when whitespace is significant it can change behaviour.
Re:Why the fuck are we templating YAML? (2019)
by calvinmorrison on Tuesday January 23, 2024 @09:53AM
(#39104085)
i don't take sides, I use tabs AND spaces
Spaces aren't a problem.
What is a problem is not picking one or the other. There's arguments for both sides but it is critical to just take a side. I'm sorry your side lost but it makes everything better to just go along with the consensus.