Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
65 because Someone Else 37 uses spaces instead of tabs while writing code

either that or his tabs get automatically converted to spaces
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
65 because I have vim configured to use spaces instead of tabs because the style requirements for the Java 1 class I took last year included "OMG don't use tabs ever, use spaces instead", and I never got around to changing it back.

Worth noting that Eclipse uses tabs, not spaces, and I never got called out on that in Java 2 (in which everyone had to use Eclipse).
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
67 I don't really notice it when I'm programming because vim nicely keeps track of indentation for me, at least in C-like languages (i.e. that use curly braces to mark off blocks of code and have semicolons at the end of each line). I never actually have to backspace over multiple spaces, so using tabs instead would't really save me any time.
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
69 And I've also just gotten used to there being spaces there. Scrolling through a tab-indented file is... jarring, since vim puts the cursor at the rightmost end of multispace characters, at least in command mode... which means that as I scroll down the leftmost column of a file where some lines start with tabs and some don't, the cursor jumps left and right in an annoying fashion.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
70 well, the text editor I use places faint(?) symbols for otherwise invisible ones like spaces, tabs and newlines. I do this to make js in certain cases easier to debug but it does mean a file that uses spaces instead of tabs look kind of annoying
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
70 Yeah, I could see how space-indentation in my code could bug you, Lens... especially when vim's auto-indentation doesn't exactly handle Javascript correctly.

Whenever a line ends without a semicolon, vim, thinking I'm using Java or C, thinks that the next line is a continuation of the previous line, and indents it again.
That took me a bit to figure out.
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
69 @duckfan It only added one layer of indent on each line in each code block after the first line, so it wasn't too bad. Whenever it hit a curly brace, it would indent normally.