Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-20-2008, 11:46 PM   #1
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
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.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-20-2008, 11:57 PM   #2
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
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
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 12:01 AM   #3
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
probably because there is no tab in html.
You'd have to use span or pre
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 12:15 AM   #4
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
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
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 12:18 AM   #5
mattz
Confirmed User
 
Industry Role:
Join Date: Dec 2001
Location: AZ
Posts: 7,697
umm no two spaces exsist in html
mattz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 12:19 AM   #6
JamesK
hi
 
Industry Role:
Join Date: Jun 2002
Posts: 16,731
there's no such thing as tab
__________________
M3Server - NATS Hosting
JamesK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 12:19 AM   #7
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
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.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 12:22 AM   #8
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
Quote:
Originally Posted by borked View Post
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.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 01:47 AM   #9
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
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!
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 01:54 AM   #10
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by borked View Post
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.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 02:31 AM   #11
AlienQ - BANNED FOR LIFE
best designer on GFY
 
AlienQ - BANNED FOR LIFE's Avatar
 
Join Date: Mar 2003
Location: IALIEN.COM - High Definition Video and Photographic Productions -ICQ 78943384
Posts: 30,307
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?
AlienQ - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 04:13 AM   #12
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
Quote:
Originally Posted by GrouchyAdmin View Post
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 at 04:15 AM..
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 06:27 AM   #13
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
Fucks spaces AND tabs.
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 06:29 AM   #14
Spunky
I need a beer
 
Spunky's Avatar
 
Industry Role:
Join Date: Jun 2002
Location: ♠ Toiletville ♠
Posts: 133,940
Format C
__________________
Spunky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 06:31 AM   #15
misterhhs
Confirmed User
 
Join Date: Oct 2005
Posts: 165
I never use html tricks for designing a page. It's perfect possible with css alone.
misterhhs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 06:40 AM   #16
TheDoc
Too lazy to set a custom title
 
TheDoc's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
Two spaces is the proper space between a sentence for a paragraph.
__________________
~TheDoc - ICQ7765825
It's all disambiguation
TheDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 06:44 AM   #17
raven1083
Confirmed User
 
raven1083's Avatar
 
Join Date: Jul 2007
Posts: 7,687
no tab at all
raven1083 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 08:06 AM   #18
undersoul
Confirmed User
 
undersoul's Avatar
 
Join Date: Sep 2006
Location: underground
Posts: 1,212
Quote:
Originally Posted by brandonstills View Post
Substituting 2 spaces with \t will work for most cases though. I'll give that a try.
that should do the trick
__________________
**RIP TD**
undersoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 08:09 AM   #19
ScottXXX
Confirmed User
 
Join Date: Oct 2007
Posts: 102
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/
ScottXXX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 08:29 AM   #20
SCORE Ralph
Confirmed User
 
SCORE Ralph's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Miami, FL
Posts: 2,090
Quote:
Originally Posted by GrouchyAdmin View Post
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
SCORE Ralph is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 08:35 AM   #21
Iron Fist
Too lazy to set a custom title
 
Join Date: Dec 2006
Posts: 23,400
Just html code formatting? Who cares
__________________
i like waffles
Iron Fist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 01:11 PM   #22
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
Quote:
Originally Posted by aspwm View Post
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.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 01:12 PM   #23
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
Quote:
Originally Posted by sharphead View Post
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 at 01:14 PM..
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 01:21 PM   #24
ScottXXX
Confirmed User
 
Join Date: Oct 2007
Posts: 102
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/
ScottXXX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 01:22 PM   #25
bbm
So Fucking Banned
 
Join Date: Oct 2005
Posts: 3,710
Its easier
bbm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 02:24 PM   #26
2012
So Fucking What
 
2012's Avatar
 
Industry Role:
Join Date: Jul 2006
Posts: 17,189
Quote:
Originally Posted by brandonstills View Post
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
2012 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 04:12 PM   #27
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
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
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-21-2008, 06:59 PM   #28
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
Quote:
Originally Posted by fartfly View Post
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.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.