Advanced Search

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: arguing about code (on the internet)

  1. #11
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    47
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Surprisingly, I've never had the tabs vs spaces argument, and I'm not actually sure which I prefer.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  2. #12
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,154
    Thanks
    260
    Thanked 690 Times in 678 Posts

    Default

    As long as it's one or the other.... haha. Either one is the right answer if it's compared to "efficiently written code" with no formatting
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #13
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,623
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Quote Originally Posted by djr33 View Post
    As long as it's one or the other...
    SO very correct.

    Quote Originally Posted by bernie1227 View Post
    Surprisingly, I've never had the tabs vs spaces argument, and I'm not actually sure which I prefer.
    Personally, I prefer spaces - though it wasn't always that way. Some reasons I switched:

    ... tabs end up displaying v e r y w i d e on some websites (github in particular); making it inconvenient to read tab-indented code.

    ... I started studying python, where indentation actually matters (four spaces signifies a code block, like { brackets } do in php).

    ... I got a code editor that supports using spaces instead of tabs (and still treats them like tabs: stepping over them, everything still lines up, etc.).

    there are other reasons, but I've forgotten them. I'm very comfortable with spaces now. As Daniel says, as long as you choose one-or-the-other.
    We Only Torture the Folks We Don't Like (You're Probably Gonna Be Okay)
    It's a Party in the CIA

  4. #14
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,154
    Thanks
    260
    Thanked 690 Times in 678 Posts

    Default

    I prefer tabs because they're easier to type. But I often find code with spaces in it so I'll use those consistently to make it match. I don't really care.
    I do end up using spaces often enough because of typing code when I can't use tabs-- such as on DD. Then I end up with spaces instead of tabs. It's a little more to type.
    But... it does the same thing. I didn't realize it was such a big debate, haha.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #15
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,623
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    We Only Torture the Folks We Don't Like (You're Probably Gonna Be Okay)
    It's a Party in the CIA

Similar Threads

  1. BEST CMS over the internet
    By cryoffalcon in forum Other
    Replies: 3
    Last Post: 06-26-2012, 07:25 AM
  2. Internet Explorer Cannot Open the Internet Site- Operation Aborted” Error
    By jaish1974 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 01-19-2010, 01:25 PM
  3. Resolved Z-Index, Ultimate Fade Slideshow, Scroller Code, Internet Explorer
    By judylovesherdog in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 01-11-2009, 09:44 AM
  4. java script code works in all browsers but internet explorer
    By suprisa in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-08-2009, 01:39 AM
  5. The end of the internet.
    By cr3ative in forum The lounge
    Replies: 3
    Last Post: 06-12-2005, 07:36 PM

Bookmarks

Posting Permissions

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