Results 1 to 5 of 5

Thread: Keep Your Codes Neat

  1. #1
    Join Date
    Dec 2010
    Posts
    69

    Keep Your Codes Neat

    I actually do not understand how many times I've been on a website, and looked at the source code, which is impossible to read. Why? No line breaks! Other times, while a few code very fast, I do not take the time to be prearranged and unexpected troubles and are tricky to troubleshoot because I cannot locate the areas in my code. So recently, have taken a simple idea: the most ordered my codes are: the easiest I can fix and edit.

  2. #2
    Join Date
    May 2009
    Posts
    527

    Re: Keep Your Codes Neat

    Sometimes the code is well written, but when the browser downloads a source of line breaks disappear and it becomes impossible to read what happened to me. However it is very important to organize in the encoding, because as you say, sometimes we cannot understand what he did for ourselves

  3. #3
    Join Date
    Apr 2009
    Posts
    488

    Re: Keep Your Codes Neat

    The purpose of a website does not have the source code is readable. The goal is to be useful, and the spaces and line breaks that have more time to make that particular page to load. It might be the best person to reply to this topic because I hate the comments. Every time some code, even if not a year ago I still know where each part is because I know my code form.

  4. #4
    Join Date
    May 2009
    Posts
    539

    Re: Keep Your Codes Neat

    I totally agree with the coding for easy reading, I know you do not want other people to read the code, however, is very difficult to correct the code messy. One thing I like to do is compartmentalize my code, for example, a site with a site wide issue, I'll make a separate file with all the data themes and layout design that does not change often and then use a php include in my content pages and all I need to enter the pages of my content is the content and there is no need to change anything design for each page. If I decide to change the design, I can change a file, not ten, as recently when I added a new page and need to put a new link in my link bar, change a few lines in a file and adjust all site, very easy from there.

  5. #5
    Join Date
    Apr 2009
    Posts
    569

    Re: Keep Your Codes Neat

    I think that works well in general: their codes should be nice and organized, but also due to their files. That's one thing I hate about using only HTML: if you have 100 pages and need to change a link in your navigation.

Similar Threads

  1. Replies: 7
    Last Post: 17-09-2011, 11:35 AM
  2. Replies: 5
    Last Post: 22-06-2011, 11:16 AM
  3. What are the different error codes of 'C'?
    By Khan Baba in forum Software Development
    Replies: 5
    Last Post: 13-01-2010, 10:02 AM
  4. Brando 7-in-1 USB charging cable keeping it neat and simple
    By The Edge in forum Hardware Peripherals
    Replies: 1
    Last Post: 05-01-2009, 09:40 AM
  5. PUK codes
    By bluediamond in forum Portable Devices
    Replies: 5
    Last Post: 03-06-2004, 04:37 PM

Tags for this Thread

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
  •  
Page generated in 1,713,566,515.18324 seconds with 17 queries