Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Tab size?

Name: Tabfucker 2011-06-01 9:58

I like 4... it feels good, not to big for me, not so small that it goes unnoticed.

Name: Anonymous 2011-06-01 9:59

I don't tab, the editor does that for me.

Name: Anonymous 2011-06-01 10:00

2 is the best size.

Name: Anonymous 2011-06-01 10:20

8 but seriously considering switching

Name: Anonymous 2011-06-01 10:27

>>4
What's the matter, too DEEP for you?

Name: Anonymous 2011-06-01 10:32

>>5
Yeah basically.

Name: Anonymous 2011-06-01 10:36

Once I thought that 2 tabs was optimal, but then I got cured of autism.

Name: Anonymous 2011-06-01 10:46

What the fuck is a tab? You mean like, indentation? What kind of faggot does that?

Name: Anonymous 2011-06-01 13:25

2 for Lisp, 4 for Python.

Name: Anonymous 2011-06-01 14:35

>>9
2 for Lisp
You're indenting your Lisp code wrong.

Name: Anonymous 2011-06-01 14:38

>>10
s/wrong/at all

Name: Anonymous 2011-06-01 14:46

4 for Lisp
8 for C

Name: Anonymous 2011-06-01 14:59

>>12
The OP wasn't asking how many times it took you to re-learn the language before you understood it.

Name: Anonymous 2011-06-01 15:03

8 is retarded. A waste of space.
2 is retarded. Makes things look like a jumbled mess.

3-4 is best.

Name: Anonymous 2011-06-01 15:15

3 actual spaces when manually indenting (e.g. writing some code in a textbox)
4 spaces-long tabs for ``I don't have sane indentation rules''-languages.
M-x indent-sexp and M-x indent-region for Lisp.
; for Python.

Name: Anonymous 2011-06-01 16:28

i like 18cm feels good and is not to big

Name: Anonymous 2011-06-01 16:52

Odd number of width: Idiot
Actual spaces: Fucking idiot

Name: Anonymous 2011-06-01 18:03

Intenting with tabs is OK if you never intend for the file to move from your computer. Otherwise, indenting with spaces ensures the file is readable anywhere.

Name: Anonymous 2011-06-01 21:52

>>18
Indenting with tabs is preferable because each user can set their own tabwidth. If they prefer 8, it will be 8. If they prefer 2, it will be 2. So on and so forth.

What's readable and preferable by you isn't necessarily as readable and preferable for other people.

Name: Anonymous 2011-06-01 22:02

>>19
Also you can always s/\t/  /. However, my favorite text editor converts tabs to spaces, so I'll stick with 2 spaces per tab.

Name: Anonymous 2011-06-02 0:33

i use whatever the BDFL tells me to use

Name: Anonymous 2011-06-02 8:35

>>19
The source should also be readable in less or any other program. Having to fuck with the tab width just to get things to align properly shows you haven't understood the issue.

Name: Anonymous 2011-06-02 20:51

>>22
Seems like you haven't understood the issue yourself because alignment isn't a problem at any tab size (except 0, obviously) unless you're misusing them.

Name: Anonymous 2011-06-02 21:19

>>22
Looks like you haven't understood the issue.

Tab width has nothing to do with aligning. It's there to align it how YOU prefer it and it will STILL show properly on a console with less/grep/whatever because a tab is a tab.

It's not going to magically transform into another character and unalign itself.

Name: Anonymous 2011-06-02 23:10

1 space.

Name: Anonymous 2011-06-03 0:56

Tabs are for bitches

Name: Anonymous 2011-06-03 8:03

>2011
>still indenting code

Name: Anonymous 2011-06-03 8:12

I remember in my first semester of my first year, I was marked down on style for one of my assignments because I "used 8 spaces" to indent my code.
They were tabs.

Name: Anonymous 2011-06-03 8:15

>>27
Back to /g/

Name: Anonymous 2011-06-03 10:34

>>29
fuck you faggot

Name: Anonymous 2011-06-03 11:45

>>24
You never see a file with eg. tab width 8 and indent width 4? Unless you configure your editor to whatever the original author used, it'll look completely fucked. Spaces all the way.

Name: Anonymous 2011-06-03 11:58

>>31
What?
Files don't have inherent tab widths. A tab is a single character that can be interpreted in different ways. If you use it properly for indentation it doesn't matter what you set your own tab width to, text will always end up aligned nicely.

Example:


    // Tab size: 4                // Tab size: 2
    if(foo) {                     if(foo) {
    --->char quux[4] = {0, 1,     ->char quux[4] = {0, 1,     // "0" and "2"
    --->................2, 3};    ->................2, 3};    // remain aligned
    }                             }


It's not rocket science.

If you use tabs for alignment as well they become quite useless indeed but no one is arguing that.

Name: Anonymous 2011-06-03 12:24

>>32
Common sense does not belong on /prog/. Either flame like everybody else or get out.

Name: Anonymous 2011-06-03 12:34

>>33
fuck you lithpfag

Name: Anonymous 2011-06-03 12:41

>>34
Common Sense: defmacro
---------------
Scheme/Racket: begin-for-syntax syntax-e syntax->datum syntax->list syntax-property #' (void) quote-syntax datum->syntax syntax-parameter-value syntax-rule raise-syntax-error internal-definition-context? syntax-parameterize make-set!-transformer prop:set!-transformer free-identifier=? syntax-local-value/immediate syntax-local-transforming-module-provides? syntax-local-module-defined-identifiers syntax-local-module-required-identifiers make-require-transformer (require (lib "stxparam.ss" "mzlib")) syntax? (require mzlib/defmacro) define-macro syntax-local-lift-expression (require racket/stxparam-exptime) make-rename-transformer syntax-local-require-certifier make-parameter-rename-transformer syntax-local-value define-syntax-parameter make-provide-transformer syntax-local-provide-certifier syntax-source local-expand/capture-lifts local-transformer-expand/capture-lifts syntax-local-lift-values-expression syntax-local-lift-module-end-declaration syntax-local-lift-require syntax-local-lift-provide syntax-local-name syntax-local-context syntax-local-phase-level syntax-local-module-exports syntax-local-get-shadower syntax-local-certifier syntax-transforming? syntax-local-introduce make-syntax-introducer exn:fail:syntax make-syntax-delta-introducer syntax-local-make-delta-introducer syntax-case define-syntax syntax-rules with-syntax syntax-position syntax-line syntax-column ...

Name: Anonymous 2011-06-03 13:34

>>35
Common Sense is jewish.

Name: Anonymous 2011-06-03 13:56

>>32

// Tab size: 8                   // Tab size: 2
....if(foo) {                    ....if(foo) {
------->char quux[4] = {0, 1,    ->char quux[4] = {0, 1,   // fuck this
------->------->------->2, 3};   ->->->2, 3};              // shit
....}                            ....}

Name: Anonymous 2011-06-03 14:05

>>37
That's exactly what you don't do, you twatting moron.

Name: Anonymous 2011-06-03 14:38

>>38
I don't do that, but others do. If they'd use spaces it wouldn't matter what the fuck their settings were, but they didn't and everyone else have to suffer.

Name: Anonymous 2011-06-03 15:03

>>39
You use spaces exclusively? That's just as bad. Tabs for indentation, and if you really feel autistic enough to line up your 0s and 2s, then do something like
--->if(foo) {
--->--->char quux[4] = {0, 1,
--->--->................2, 3};
--->}

will suffice.

Name: Anonymous 2011-06-03 18:28

>>40
YHBT

Name: Anonymous 2011-06-04 3:27

8 character tabs. Always.

Name: Anonymous 2011-06-04 3:35

hey guy's i havent bothered to install a hook to convert file's that are indented using space's when I load them and my editor is too retarded to even have this ability so im going to say that people who uses space's are dumb

people who use space's are dumb.

ps i use four space's all the time even in language's where the style guide says to use tabs or 2 space's

Name: Anonymous 2011-06-04 3:37

I use spaces because my code is ready mostly by corporate neckties who don't even know what they're reading so I don't give a fuck.

Name: Anonymous 2011-06-04 9:24

>>43
Plural forms don't use apostrophes, retard.

Name: Anonymous 2011-06-04 9:24

>>37 emacs default settings, mixed tabs and spaces

gnu is a retard

Name: Anonymous 2011-06-04 13:13

MORE LIKE
12 INCH TABS DEEP IN YOUR MOMMA'S THICK BLACK AZZZZZZZZZZ
AMIRITE LOLLLLLLLLLLLLLLLLLLLLLLLZzz!!11oNE!!1ONE1!

Don't change these.
Name: Email:
Entire Thread Thread List