5 ms·
I would like to know If they are people who have 'switched'(coded with spaces and then use tabs or revers)?
by milansuk 10y ago
I would like to know If they are people who have 'switched'(coded with spaces and then use tabs or revers)?
- RutZap 10y agoI just recently switched from tabs to spaces. I always used spaces for alignment and tabs for indentation. It was working very well within my company as all my colleagues were using 2sp tabs and I was on 4 space tabs. But now, we've decided to upgrade our codebase and make it PSR compliant (PHP).. which meant switching from tabs to spaces. To be honest.. it's no biggie after a few weeks you get used to it.
- louthy 10y agoI have, I mentioned it in my comment above [1]. It's not too long, so I'll paste it again: "I came to this conclusion too after at least 20 years of using tabs; but mostly it was because of moving to white-space significant languages like Haskell, F#, etc. It was just too painful getting everything lined up with tabs and I needed the fidelity of spaces. Previous to that with C/C++/C# the alignment usually took care of itself through the closing brace and IDE auto-formatting. So tabs was the natural unit of currency there." https://news.ycombinator.com/item?id=12398432 https://news.ycombinator.com/item?id=12398432
- lakkal 10y agoBack in the very early 90s, I went through my company's codebase and replaced the mixed indentation with tabs. This was purely to save a space (small company, limited disk space). I probably preferred tabs at the time. Some time in the late 90s, though, I started to prefer the predictab ility and granularity of spaces.
- jpfed 10y agoI have switched from tabs to spaces. I have always thought that tabs were the more straightforward representation- if we're in the spirit of separating presentation from semantics, we might as well use the character that means "indent this thing". But the majority of people think otherwise, and that's probably never going to change. In unrelated news, I like the Dymaxion projection and think that tau makes more sense than pi, but every last one of my precious ships has sailed. tear
- collyw 10y agoI used to use tabs until I opened someone else's files that had a mix and were a mess of indentation.