why do so many designers use 2 spaces instead of tab in HTML?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brandonstills
    Confirmed User
    • Dec 2007
    • 1964

    #1

    why do so many designers use 2 spaces instead of tab in HTML?

    Is that a Dreamweaver thing?

    When trying to edit it everything gets misaligned. Plus spaces don't play well with most text editor indentation tools.

    I have to reformat all the HTML I get delivered just so I can modify it and add code to it.

    Brandon Stills
    Industry and programming veteran
    [email protected] | skype: brandonstills | ICQ #495-171-318
  • borked
    Totally Borked
    • Feb 2005
    • 6284

    #2
    just use your editor (if it supports it) to replace two spaces with a tab (\t)

    For coding work - hit me up on andy // borkedcoder // com
    (consider figuring out the email as test #1)



    All models are wrong, but some are useful. George E.P. Box. p202

    Comment

    • spacedog
      Yes that IS me. Bitch.
      • Nov 2001
      • 14149

      #3
      probably because there is no tab in html.
      You'd have to use span or pre

      Comment

      • borked
        Totally Borked
        • Feb 2005
        • 6284

        #4
        I thought he was talking about misaligned code... double spaces won't do anything in html either, you'd have to type   

        For coding work - hit me up on andy // borkedcoder // com
        (consider figuring out the email as test #1)



        All models are wrong, but some are useful. George E.P. Box. p202

        Comment

        • mattz
          Confirmed User
          • Dec 2001
          • 7697

          #5
          umm no two spaces exsist in html

          Comment

          • JamesK
            hi
            • Jun 2002
            • 16731

            #6
            there's no such thing as tab
            M3Server - NATS Hosting

            Comment

            • brandonstills
              Confirmed User
              • Dec 2007
              • 1964

              #7
              I'm talking about indentation not spaces actually showing up on the rendered page.

              Substituting 2 spaces with \t will work for most cases though. I'll give that a try.

              Brandon Stills
              Industry and programming veteran
              [email protected] | skype: brandonstills | ICQ #495-171-318

              Comment

              • brandonstills
                Confirmed User
                • Dec 2007
                • 1964

                #8
                Originally posted by borked
                I thought he was talking about misaligned code... double spaces won't do anything in html either, you'd have to type   
                I am. Thought it was obvious from the context of talking about indentation and text editors.

                Brandon Stills
                Industry and programming veteran
                [email protected] | skype: brandonstills | ICQ #495-171-318

                Comment

                • GrouchyAdmin
                  Now choke yourself!
                  • Apr 2006
                  • 12085

                  #9
                  You're the first self-proclaimed programmer I've ever seen to bitch about spaces vs tabs in favor of tabs. The first. I've been doing this for over 15 years, and HTML beautifying for about 12. Congratulations!

                  Comment

                  • GrouchyAdmin
                    Now choke yourself!
                    • Apr 2006
                    • 12085

                    #10
                    Originally posted by borked
                    I thought he was talking about misaligned code... double spaces won't do anything in html either, you'd have to type   
                    You don't want to see how KHTML handles that. It's.. really awful. They don't even use a real lexer; they just search for two space chars, and inline strcpy, and place   in place of one, then strcpy the rest.

                    I found this tidbit when I got bitched at by the 18th warez-trillian-0.4 owner who said my sentences kept having &jibberish. I double space my sentences; it's more legible that way.

                    Comment

                    • AlienQ - BANNED FOR LIFE
                      best designer on GFY
                      • Mar 2003
                      • 30307

                      #11
                      I have found that sometimes white space can break layouts from time to time, but the reason I am posting is, why are you paying for a web coder that does that kind of thing?

                      Comment

                      • brandonstills
                        Confirmed User
                        • Dec 2007
                        • 1964

                        #12
                        Originally posted by GrouchyAdmin
                        You're the first self-proclaimed programmer I've ever seen to bitch about spaces vs tabs in favor of tabs. The first. I've been doing this for over 15 years, and HTML beautifying for about 12. Congratulations!
                        Congratulations for what? I've been programming for almost twice that by the way... Not that I see the relevance.

                        Why do you think they invented the tab key in the first place? For indentation. What's the space key for? For separating words and sentences (tokens in code parlance).

                        Try changing the indentation on a block of code when it has spaces instead of tabs. Both vi and Textmate don't like it very much. I hate 2 spaces. What are you still using DOS with an 80x25 character display? Change your screen resolution and font size. 2 spaces is like a few millimeters. Barely even noticeable that it's indented. If you use tabs you can let the user control tab sizes, thus letting the user choose their preference. Congratulations for making it really difficult for me to notice the indentation.

                        Gee, let me hit space 4 times to indent instead of tab once. Want to go back, now I have to hit delete multiple times. Congratulations for wasting my time.

                        If I'm editing HTML code and I hit enter to create a new line and then hit tab to indent... well it indents different distance from the code below that should be at the same indentation level. Congratulations for fucking up my indentation.

                        If I want to change the indentation and highlight a block and tell it to unindent, guess what, it only goes to the left 1 space instead of 1 indentation level. Congratulations for wasting my time yet again.

                        BTW, I used to use spaces about 15 years ago when I programmed in DOS. It made sense back then because 8 spaces for tab was huge. But that's not the case anymore. Almost nobody uses 8 spaces for tab and screen resolutions are much higher now. A wise UNIX teacher taught me to use tabs and that was some of the best advice I have ever been given.
                        Last edited by brandonstills; 08-21-2008, 03:15 AM.

                        Brandon Stills
                        Industry and programming veteran
                        [email protected] | skype: brandonstills | ICQ #495-171-318

                        Comment

                        • Lycanthrope
                          Confirmed User
                          • Jan 2004
                          • 4517

                          #13
                          Fucks spaces AND tabs.

                          Comment

                          • Spunky
                            I need a beer
                            • Jun 2002
                            • 133978

                            #14
                            Format C

                            Comment

                            • misterhhs
                              Confirmed User
                              • Oct 2005
                              • 165

                              #15
                              I never use html tricks for designing a page. It's perfect possible with css alone.

                              Comment

                              • TheDoc
                                Too lazy to set a custom title
                                • Jul 2001
                                • 13827

                                #16
                                Two spaces is the proper space between a sentence for a paragraph.
                                ~TheDoc - ICQ7765825
                                It's all disambiguation

                                Comment

                                • raven1083
                                  Confirmed User
                                  • Jul 2007
                                  • 7687

                                  #17
                                  no tab at all
                                  Femdom Stories | Bound BBW Blog and Videos |Bondage Sex Videos and Pictures

                                  Hardcore Japanese Bondage | BDSM Movies And Galleries Mistress Cuckold CBT

                                  Comment

                                  • undersoul
                                    Confirmed User
                                    • Sep 2006
                                    • 1212

                                    #18
                                    Originally posted by brandonstills
                                    Substituting 2 spaces with \t will work for most cases though. I'll give that a try.
                                    that should do the trick
                                    **RIP TD**

                                    Comment

                                    • ScottXXX
                                      Confirmed User
                                      • Oct 2007
                                      • 102

                                      #19
                                      most everyone that I've seen that does that is using dreamweaver with its out of the box settings
                                      If you have sites with creampie gangbangs, gang bangs, or creampies please submit them to my new site:

                                      http://creampiegangbang.org/add.php

                                      http://creampiegangbang.org/

                                      Comment

                                      • SCORE Ralph
                                        Confirmed User
                                        • Mar 2003
                                        • 2090

                                        #20
                                        Originally posted by GrouchyAdmin
                                        You're the first self-proclaimed programmer I've ever seen to bitch about spaces vs tabs in favor of tabs. The first. I've been doing this for over 15 years, and HTML beautifying for about 12. Congratulations!
                                        Then it must be a new-school thing to use Tabs over spaces. Every young programmer here uses tabs, older guys use dual-spacing. Must be something theyre are teaching now... Im self-taught and prefer tabs.
                                        GetSCORECash.com | In the Biz Since 1991
                                        Big Tits | Granny & MILFs | Amateurs | Big Booty | Foot Fetish | BBW | Teens
                                        Hosted Embeds | MP4s | RSS Feeds | FHGs | Model Directory

                                        Comment

                                        • Iron Fist
                                          Too lazy to set a custom title
                                          • Dec 2006
                                          • 23400

                                          #21
                                          Just html code formatting? Who cares
                                          i like waffles

                                          Comment

                                          • brandonstills
                                            Confirmed User
                                            • Dec 2007
                                            • 1964

                                            #22
                                            Originally posted by aspwm
                                            Then it must be a new-school thing to use Tabs over spaces. Every young programmer here uses tabs, older guys use dual-spacing. Must be something theyre are teaching now... Im self-taught and prefer tabs.
                                            Actually about 15 years ago it WAS better to use spaces than tabs. I hinted on a few reasons for that earlier but now they don't apply anymore IMO. Also, text editors work well with tabs, they don't work well with spaces.

                                            Brandon Stills
                                            Industry and programming veteran
                                            [email protected] | skype: brandonstills | ICQ #495-171-318

                                            Comment

                                            • brandonstills
                                              Confirmed User
                                              • Dec 2007
                                              • 1964

                                              #23
                                              Originally posted by sharphead
                                              Just html code formatting? Who cares
                                              tryre adingadocume ntthatisnotf ormattedcorrec tlyanddo esnotfol lowanygo odrulestom akeite as ytoreadan dtheny outellme formatt ingdoe snot ma tter.
                                              Last edited by brandonstills; 08-21-2008, 12:14 PM.

                                              Brandon Stills
                                              Industry and programming veteran
                                              [email protected] | skype: brandonstills | ICQ #495-171-318

                                              Comment

                                              • ScottXXX
                                                Confirmed User
                                                • Oct 2007
                                                • 102

                                                #24
                                                Sadly, I read that just fine.
                                                If you have sites with creampie gangbangs, gang bangs, or creampies please submit them to my new site:

                                                http://creampiegangbang.org/add.php

                                                http://creampiegangbang.org/

                                                Comment

                                                • bbm
                                                  So Fucking Banned
                                                  • Oct 2005
                                                  • 3710

                                                  #25
                                                  Its easier

                                                  Comment

                                                  • 2012
                                                    So Fucking What
                                                    • Jul 2006
                                                    • 17189

                                                    #26
                                                    Originally posted by brandonstills
                                                    Is that a Dreamweaver thing?

                                                    When trying to edit it everything gets misaligned. Plus spaces don't play well with most text editor indentation tools.

                                                    I have to reformat all the HTML I get delivered just so I can modify it and add code to it.
                                                    ... gosh, that's gotta suck. I hate the "search/replace" feature myself.

                                                    So...
                                                    *PHP syntax doesn't meet your standards
                                                    *Dreamweaver doesn't cut the mustard
                                                    *30+ years as a fulltime programmer

                                                    With all that experience have you ever considered creating your own tools or contributing to any open source projects?
                                                    best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

                                                    Comment

                                                    • borked
                                                      Totally Borked
                                                      • Feb 2005
                                                      • 6284

                                                      #27
                                                      haha, only amongst programmers can this frikking argument occur!!!

                                                      personally, I'm a tab man, and as soon as I see code with spaces for indentation, be it 2 or 4 or whatever, I find what is the tab equivalent and search all/replace.

                                                      Each to their own.

                                                      Now should opening braces go on a new line or follow on the same line of the code they open?

                                                      That is worth an argument......

                                                      I personally open braces on the same line that they open as I treat them as a colon or semi colon - they are following on from what was just said, but is in a new context. Those poooofters that just open braces on a new line can't follow the code and so need to visualise where they've opened a brace to be able to close it.

                                                      :P

                                                      For coding work - hit me up on andy // borkedcoder // com
                                                      (consider figuring out the email as test #1)



                                                      All models are wrong, but some are useful. George E.P. Box. p202

                                                      Comment

                                                      • brandonstills
                                                        Confirmed User
                                                        • Dec 2007
                                                        • 1964

                                                        #28
                                                        Originally posted by fartfly
                                                        With all that experience have you ever considered creating your own tools or contributing to any open source projects?
                                                        I have but finances don't allow me to right now. I used to write tutorials on operating system development back when I was in high school. Loved it. I also have some ideas for new development methodologies that I want to prototype and experiment with but needing to work and pay the bills keeps me away from them. Probably for the better right now. I find myself ignoring everything else and spending a whole week reading arcane computer science papers if I don't watch myself. Eventually I want to write my own language / environment focused on web application development. I haven't decided if I will open source it though. I've thought of doing some open source work with factor, parrot or rubinius to get me some experience in the field when I have more time.

                                                        Brandon Stills
                                                        Industry and programming veteran
                                                        [email protected] | skype: brandonstills | ICQ #495-171-318

                                                        Comment

                                                        Working...