Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion
 

forgot password?



Reply


Old
  Post #1 (permalink)   05-04-2009, 05:02 AM
HD Guru
 
siforek's Avatar
 
Join Date: Mar 2009
Location: Salt Lake City, UT
Posts: 663

Status: siforek is offline
Other than making things easier/more organized for myself, I know there's not really any requirement in writing clean markup. I guess I'm just that much of a perfectionist, but I'm wondering how many others do, and if there's any additional advantages?
__________________
| | Fiber Elephant | | Virtuozzo & Reseller Hosting
█ | Never oversold, always managed & on the SoftLayer network!
█ | Call us toll free 24/7! | 1-888-92-FIBER
 
 
 


Old
  Post #2 (permalink)   05-04-2009, 07:04 AM
CSN-UK | Charlie
 
csn-uk's Avatar
 
Join Date: Mar 2009
Location: Swindon (UK)
Posts: 470
Send a message via MSN to csn-uk

Status: csn-uk is offline
I think clean markup is essential in all programming or coding, not only for that fact that it is more understandable but also for illness and other issues where by the main coder or programmer is unavailable and someone is required to take their place however temporary.

I often for sites, divide them into 3 seconds allowing for easy reuse of code and also for ease of integration which will also be the method put forward in tutorials that myself and my team write. By no means do I recommend commenting code to high heaven though as I have seen many people do as this is a pure indication for those who rip sites as to “take this bit of code to do....” but commenting sections is helpful as well as clearly indenting div’s and content within the code.
__________________
CSN-UK | Shared Hosting | Dedicated | VPS | Custom Packages Avalible On Request | Quality SSL Certificates from COMODO CA
CSN-UK.net | Server Status | Client Area | Live Support
 
 
 


Old
  Post #3 (permalink)   05-04-2009, 09:09 AM
HD Guru
 
siforek's Avatar
 
Join Date: Mar 2009
Location: Salt Lake City, UT
Posts: 663

Status: siforek is offline
I mite comment parts of a stylesheet php file if it'll save me time when making quick edits, but other than that comments are worthless to me. However I can understand where more details would be needed, like open source software, etc. Indents are essential IMO..
__________________
| | Fiber Elephant | | Virtuozzo & Reseller Hosting
█ | Never oversold, always managed & on the SoftLayer network!
█ | Call us toll free 24/7! | 1-888-92-FIBER
 
 
 


Old
  Post #4 (permalink)   05-07-2009, 02:24 AM
HD Newbie
 
Join Date: May 2009
Posts: 3

Status: rosalesemil is offline
clean markups I guess makes sites load faster and lesser bugs on different browser.

that is my idea only.
 
 
 


Old
  Post #5 (permalink)   05-07-2009, 03:51 AM
HD Wizard
 
Join Date: Mar 2005
Location: Atlanta, GA
Posts: 2,264

Status: handsonhosting is offline
For the most part, before posting my code to the site, I often strip comments from the code (unless I'm doing testing). The smaller I can keep the file, with less lines etc, the faster the page loads. Sure it's only a few extra lines, but everything counts in this day and age.

I usully keep a marked up version here locally and use it for troubleshooting (if necessary) - but other than that, I usually try to dump comments before uploading to the web.

When I used to work for a large corporation doing programming, the removal of comments pretty much ensured job security also Hiring a programmer to decode what I had done is often a lot more expensive than just asking me to fix "xyz" in a program.

That said, when I hire outside programmers to make something, they are required to produce a flow chart and commented code as part of the purchase price.
__________________
Emerson Nogueira
http://www.HandsOnWebHosting.com
cPanel Web Hosting, Domain Registration, Managed VPS Servers
 
 
 


Old
  Post #6 (permalink)   05-07-2009, 09:19 AM
HD Guru
 
siforek's Avatar
 
Join Date: Mar 2009
Location: Salt Lake City, UT
Posts: 663

Status: siforek is offline
Smaller files are one thing, but I just can't understand how someone can make changes in a timely manner when it takes ages just to find what needs to be altered in the mess of many sites I've seen.
__________________
| | Fiber Elephant | | Virtuozzo & Reseller Hosting
█ | Never oversold, always managed & on the SoftLayer network!
█ | Call us toll free 24/7! | 1-888-92-FIBER
 
 
 


Old
  Post #7 (permalink)   05-07-2009, 09:24 AM
HD Community Advisor
 
SenseiSteve's Avatar
 
Join Date: Mar 2009
Location: Saint Louis
Posts: 4,945
Send a message via MSN to SenseiSteve

Status: SenseiSteve is offline
It's like Conor said - part of it is about job security. Another part is about reducing file size. Quite often, it's just quality of work. Some providers are just more professional than others.
__________________
ProlimeHost- Dedicated Server Hosting & KVM SSD VPS
Three Datacenter Locations: Los Angeles, Denver & Singapore
SuperMicro Hardware | Multiple Bandwidth Providers | 24/7 On Site Engineers
 
 
 


Old
  Post #8 (permalink)   05-13-2009, 03:58 AM
HD Master
 
Zagor's Avatar
 
Join Date: May 2009
Posts: 366

Status: Zagor is offline
I agree there is no explicit need to do this, but I do it anyway I like my code extremely clean. Some people say that this is hard to achieve and just takes away your time. It's just a matter of preference, if you do it clean do it clean from the beginning. Who knows, one day browser developers will decide clean markup must be a standard
 
 
 


Old
  Post #9 (permalink)   05-13-2009, 08:53 AM
HD Community Advisor
 
SenseiSteve's Avatar
 
Join Date: Mar 2009
Location: Saint Louis
Posts: 4,945
Send a message via MSN to SenseiSteve

Status: SenseiSteve is offline
Quote:
Who knows, one day browser developers will decide clean markup must be a standard
Unfortunately, I don't foresee that happening anytime soon.
__________________
ProlimeHost- Dedicated Server Hosting & KVM SSD VPS
Three Datacenter Locations: Los Angeles, Denver & Singapore
SuperMicro Hardware | Multiple Bandwidth Providers | 24/7 On Site Engineers
 
 
 


Old
  Post #10 (permalink)   05-13-2009, 12:39 PM
HD Guru
 
siforek's Avatar
 
Join Date: Mar 2009
Location: Salt Lake City, UT
Posts: 663

Status: siforek is offline
Quote:
Originally Posted by Steve-Hostirian View Post
Unfortunately, I don't foresee that happening anytime soon.
Agreed.

As far as clean from the start, if you do it doesn't take any longer.
__________________
| | Fiber Elephant | | Virtuozzo & Reseller Hosting
█ | Never oversold, always managed & on the SoftLayer network!
█ | Call us toll free 24/7! | 1-888-92-FIBER
 
 
 


Old
  Post #11 (permalink)   05-15-2009, 04:50 PM
HD Master
 
Zagor's Avatar
 
Join Date: May 2009
Posts: 366

Status: Zagor is offline
Quote:
Originally Posted by Steve-Hostirian View Post
Unfortunately, I don't foresee that happening anytime soon.
Me too, but I'm a dreamer It's interesting how this works:

Work of bad coders is accepted by the browsers, so those coders stir from correcting their mistakes and gaining proper knowledge. So coders get more sloppy and the browser more disrespectful of standards. It's just getting worse and harder for the browser developers to get on the right track and we face a much more rubbish code on the net whilst.
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: