Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Code Structure-- Do you do it better?
Old 06-27-2008, 12:16 AM Code Structure-- Do you do it better?
Ultra Talker

Posts: 353
Name: Michael
Location: Spring Hill, Florida
Trades: 0
I purely don't believe in sanitary code structure. Who says it has to be aligned and indented.. If you do it that way, it's easier to copy, crack, decode, etc. I like people that look at my code to think , "How the hell can that guy work with that mess"--

what do you think about structuring your html?
__________________

Please login or register to view this content. Registration is FREE
6,000+ Places to Advertise FREE with

Please login or register to view this content. Registration is FREE
& 25,000 Locals through statistical reference of traffic, quality, popularity, and more!

eautocad is offline
Reply With Quote
View Public Profile Visit eautocad's homepage!
 
 
Register now for full access!
Old 06-27-2008, 01:04 AM Re: Code Structure-- Do you do it better?
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
I don't know if you have clients, but if you do, they can look at the code too. Not aligning and indenting doesn't make it harder to copy or crack, it just signifies poor code quality and a project that would be hard to maintain.
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 06-27-2008, 10:21 AM Re: Code Structure-- Do you do it better?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
May we see some examples of your horrible code?
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-27-2008, 11:42 AM Re: Code Structure-- Do you do it better?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
Who says it has to be aligned and indented
They says it, and enforce it!
http://docs.python.org/ref/indentation.html
Quote:
Leading whitespace (spaces and tabs) at the beginning of a logical line is used to compute the indentation level of the line, which in turn is used to determine the grouping of statements.
And if you are so affraid that someone might use your code, why do you code anyway ?
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 06-27-2008, 12:05 PM Re: Code Structure-- Do you do it better?
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
I generally indent if/then blocks, for loops, etc. However I rarely add comments to my code -- usually only when a block of code is particularly complex and hard to follow do I add a comment or two.
__________________
~nyef

Please login or register to view this content. Registration is FREE
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Old 06-27-2008, 04:13 PM Re: Code Structure-- Do you do it better?
seocd's Avatar
Super Talker

Posts: 128
Name: Ryan
Trades: 0
you should always keep your code fairly organized for a couple of reasons.
1. The client is paying for professional web design and horrific looking code is not professional.
2. no matter how well you know you own coding, if it is a complete mess it is going to be harder to work with than organized code.
3. you are more likely to get errors in the code if it is not organized because the organization allows you to easily point out opening and closing tags, typos, inproper tags, etc.
4. If the client or another designer needs to make an adjustment to your code it could take hours with completely unorganized code.

There really is no reason to not organize your code because it can be taken regardless. You are only going to hurt your reputation as a web designer if you use poor code structure.
__________________
SEO Compatible
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
seocd is offline
Reply With Quote
View Public Profile
 
Old 06-27-2008, 05:24 PM Re: Code Structure-- Do you do it better?
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
If you have large pages of code, or if you have several clients, I am sure you will start to indent and comment your code soon. It is easy to get lost even in your own code sometimes. I admit I am not the best with indenting, but I comment all over the place.

Why would you worry about people "stealing" your code?
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Code Structure-- Do you do it better?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50142 seconds with 12 queries