Spaces or Tabs Spaces or Tabs

View Poll Results: Spaces or Tabs

Voters
25. You may not vote on this poll
  • Spaces

    9 36.00%
  • Tabs

    9 36.00%
  • AndyW tells me what do by morse code

    7 28.00%
Page 1 of 4 123 ... LastLast
Posts 1 to 10 of 32

Thread: Spaces or Tabs

  1. #1

    Double Godlike!

    Spacecadet is a permanent contractor

    Spacecadet's Avatar
    Join Date
    Mar 2006
    Location
    Jupiter
    Posts
    12,413

    Default Spaces or Tabs

    When trying to correctly format code do you use spaces or tabs

    Poll to follow
    Coffee's for closers

  2. #2

    Geeklike

    Xenophon has more data than eek

    Xenophon's Avatar
    Join Date
    Aug 2005
    Location
    CUK
    Posts
    8,660

    Default

    Rule #76: No excuses. Play like a champion.

  3. #3

    Banned

    Churchill has more data than eek

    Churchill's Avatar
    Join Date
    Aug 2005
    Location
    On the rug licking my balls.
    Posts
    25,954

    Default

    I press the <TAB> key and my code editor inserts 4 <spaces>.

  4. #4

    More fingers than teeth

    TimberWolf is too good to be a permie

    TimberWolf's Avatar
    Join Date
    Oct 2007
    Posts
    17,505

    Default

    Some editors will convert tabs to spaces automatically. I've lost count of the number of times I've had to re-tab everything with spaces when revisiting source code (possibly in a different editor - and probably because I wasn't consistent), so I would go for 3 spaces per indent.

  5. #5

    Faqqed Off

    TheFaQQer is a fount of knowledge

    TheFaQQer's Avatar
    Join Date
    Oct 2006
    Posts
    36,487

    Default

    Spaces. Tabs mean that when you move between editors, the code is screwed, which is particularly bad when you look at it in vi.
    Best Forum Advisor 2014
    Work in the public sector? You can read my FAQ here
    Click here to get 15% off your first year's IPSE membership

  6. #6

    Banned

    Bob Dalek is too good to be a permie


    Join Date
    Jul 2008
    Posts
    1,975

    Default

    Spaced-out on tabs. Ah! My student days.

  7. #7

    Double Godlike!

    Bagpuss is good enough for Jehovah!


    Join Date
    Jul 2005
    Posts
    10,066

    Default

    Tabs, you can't smoke a space. But then you can't park in a Tab
    The court heard Darren Upton had written a letter to Judge Sally Cahill QC saying he wasn’t “a typical inmate of prison”.

    But the judge said: “That simply demonstrates your arrogance continues. You are typical. Inmates of prison are people who are dishonest. You are a thoroughly dishonestly man motivated by your own selfish greed.”

  8. #8

    Contractor Among Contractors

    Chugnut has no reputation

    Chugnut's Avatar
    Join Date
    Dec 2006
    Posts
    1,106

    Default

    Quote Originally Posted by Bagpuss View Post
    Tabs, you can't smoke a space. But then you can't park in a Tab
    Reminds me of a joke that.


    What's the difference between an egg and a wink?

    You can't beat a wink.

  9. #9

    Double Godlike!

    Bagpuss is good enough for Jehovah!


    Join Date
    Jul 2005
    Posts
    10,066

    Default

    Quote Originally Posted by Chugnut View Post
    Reminds me of a joke that.


    What's the difference between an egg and a wink?

    You can't beat a wink.
    I know, my jokes often remind people of jokes
    The court heard Darren Upton had written a letter to Judge Sally Cahill QC saying he wasn’t “a typical inmate of prison”.

    But the judge said: “That simply demonstrates your arrogance continues. You are typical. Inmates of prison are people who are dishonest. You are a thoroughly dishonestly man motivated by your own selfish greed.”

  10. #10

    Respect my authoritah!

    NotAllThere is always on top

    NotAllThere's Avatar
    Join Date
    Aug 2007
    Location
    Far away from HMRC
    Posts
    20,819

    Default

    I though all modern code editors did all the indenting rubbish for you. Even the SAP one does.
    Duct tape holds the universe together. In quantum chromodynamics it's known as the strong force. You get it in different colours, but metallic grey is best.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •