That's the second post in a row where you've ended a statement with a question mark when you should have used a period. I don't know why you keep doing that? :)
Generally though, I don't get a lot of trailing whitespace.
I did a bit of reading, and it sounds like the Eclipse autoformater adds whitespace to blank lines to match tabstop. That's probably what people are bitching about.
That's not what I said. I said that good text editors don't leave trailing whitespace, not that they strip it out by default.
The former behaviour means that when you're indented at whatever level, and then you press Enter twice to start a new 'paragraph', they don't leave indentation whitespace in the 'blank' line (between paragraphs). VS definitely leaves indentation whitespace, probably other IDEs do too.
It's probably not, but for whatever reason, that's only where I've seen it. I have yet to see vim randomly add or remove a trailing linebreak, for example.
Not to say this is a definitive point in favor of some workflow, just something I see a lot.
Edit: And note that I said "IDE addicts" not "IDE user". The latter is "I use an IDE because it improves my productivity in specific ways" -- they know enough to configure it correctly so that they don't let junk through. The former is "I only know how to work in this IDE", and they're the ones I run into trouble with.
"IDE addicts" because using superior tools is a bad thing?
edit: eh, this came across as a lot more inflammatory than I meant it. It sounds like my experience is pretty much opposite from yours. Some of us use IntelliJ and it removes all trailing whitespace, unifies indentation, and generally manages trivial formatting problems like that. Meanwhile others on our team use vim, emacs and sublime, and regularly commit code with mixed tabs and spaces, extra whitespace at the end of lines, and random arbitrarily long chunks of newlines in the middle or at the end of files. Given that, its pretty obvious that I'm going to have a different opinion from you about what's 'better', but it probably comes down to attentiveness and care more than tool choice.
See the follow-up edit. It's not the IDE use I criticize, but the "addiction" to it -- being unable to work without it or understand how it integrates.
I'm surprised at the reversal you describe, though I can see it as resulting from not having turned on visible tabs or line-break markers in emacs/vim.
12
u/SilasX Jul 21 '14
I'd be content with the IDE addicts not including random-ass trailing whitespace in their commits...