Login Register


Tabs or Spaces? filter_list
Author
Message
RE: Tabs or Spaces? #11
Since I started with programming, I've used tabs. I'm most likely going to stick to tabs too, because I never really liked how people used spaces.

Reply

RE: Tabs or Spaces? #12
I have no preference as my code is super ugly and I only use tabs when needed in python.
#MakeSinisterlySexyAgain

Reply

RE: Tabs or Spaces? #13
I use 4 spaces pretty much everywhere when I stack code. No tabs at all. 2 spaces only very occasionally instead of 4. The complete control over where my code goes and how it looks is very nice as well.

Spaces, beyond personal preference in control over formatting, are much more consistent than tabs and allow for much easier examination of source code.

For example, a convention in python is to keep your lines down to 79 characters so that they aren't affected by wordwrap or cut off when put into a narrow window for side-by-side editing. While tabs are processed to be however many spaces in your favorite text editor, if someone has their tabs set to a different value or their text editor has any quirks with tab processing then things can get ugly fast. This potential issue is completely circumvented by using spaces only. Obviously this isn't a problem for personal projects or highly organized team efforts, and even then is only a very specific case.

I suppose a better reason for using spaces is to completely prevent any possible mixing of tabs and spaces on accident. I don't think I need to say anything on that except that it wastes time and is usually ugly to sort through, both good reasons for me to avoid using tabs and to recommend spaces-only to others.

Reply

RE: Tabs or Spaces? #14
(01-31-2014, 03:22 AM)Llebacc Wrote: I use 4 spaces pretty much everywhere when I stack code. No tabs at all. 2 spaces only very occasionally instead of 4. The complete control over where my code goes and how it looks is very nice as well.

Spaces, beyond personal preference in control over formatting, are much more consistent than tabs and allow for much easier examination of source code.

For example, a convention in python is to keep your lines down to 79 characters so that they aren't affected by wordwrap or cut off when put into a narrow window for side-by-side editing. While tabs are processed to be however many spaces in your favorite text editor, if someone has their tabs set to a different value or their text editor has any quirks with tab processing then things can get ugly fast. This potential issue is completely circumvented by using spaces only. Obviously this isn't a problem for personal projects or highly organized team efforts, and even then is only a very specific case.

I suppose a better reason for using spaces is to completely prevent any possible mixing of tabs and spaces on accident. I don't think I need to say anything on that except that it wastes time and is usually ugly to sort through, both good reasons for me to avoid using tabs and to recommend spaces-only to others.
Get this fucker a medal.

I've had it in the past that I've run into issues with tabs being sized differently at different points, in a solo project.
I often have to switch between online editing and local, for a few reasons not worth getting in to.
Not only are tabs inconsistent between different local editors and various web ones, they're often not even available from a browser.

Spaces are universally standardized, so using tabs is a cardinal sin on par with rape, murder, and using IE.
[Image: tumblr_m73y8go3jd1rb7u8co1_500.gif]
Avatars are for faggots.

Reply

RE: Tabs or Spaces? #15
A text editor that lets me interperet spaces as tabs. I get control of layout, and the auto-indent feature.

Reply







Users browsing this thread: 1 Guest(s)