How to Check for Good Clean Code?

Discussion in 'HTML & Website Design' started by I Love Female Muscle, Apr 30, 2013.

  1. #1
    hi,

    are there any sites or services to check websites for good clean code and css? i know just enough about coding to know i don't know a lot!

    i'm looking for a 3rd party to check our code and give us feedback and suggestions on what we can clean up…

    i've found a few issues for us to fix here:

    http://validator.w3.org/

    i know each coder may have their own "style" of writing but i imagine cleaner code will help the over all user experience and possibly help with site speed?

    mark
     
    I Love Female Muscle, Apr 30, 2013 IP
  2. themes4all

    themes4all Well-Known Member

    Messages:
    662
    Likes Received:
    47
    Best Answers:
    6
    Trophy Points:
    100
    #2
    the best one to use is what you mentioned ! the Validator give you all the wrong things on your code so you just need to fix the wrong markups and codes...

    Goodluck
     
    themes4all, May 1, 2013 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    The validator can tell you if it's valid, but not if it's GOOD -- generally speaking a lot of what 'works' isn't neccesarily good... There's no way for a computer to know the difference between two or three unrelated anchors and an actual paragraph of text, what should be headings and what shouldn't, what's subsections of what in terms of choosing heading tags, when a DIV is needed by a layout or is just in there out of ignorance, etc, etc, etc... It's one of those things no automated tool can do as well as an actual person.

    That said I just noticed your PM, response inbound with a review of your code... and yeah, you need it. :D
     
    deathshadow, May 1, 2013 IP
  4. designgenie

    designgenie Well-Known Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    121
    #4
    I also used mentioned web site (http://validator.w3.org/) it was more useful to me.all the best
     
    designgenie, May 1, 2013 IP
  5. creativewebmaster

    creativewebmaster Active Member

    Messages:
    654
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    78
    #5
    validator.w3.org is best and correct way to show your website health.
     
    creativewebmaster, May 1, 2013 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #6
    OP mentions the validator, "me-too" re-re's then do five word broken engrish moist goodry posts mentioning it... Did you even READ, much less COMPREHEND the OP's question?!?
     
    deathshadow, May 3, 2013 IP
  7. ntmedia

    ntmedia Active Member

    Messages:
    118
    Likes Received:
    11
    Best Answers:
    7
    Trophy Points:
    90
    #7
    Well, first of all you need to understand the code you're trying to write. Every coder has it's own method of writing both HTML and CSS.

    If you want to have clean code, first make sure that it's at least valid (as several guys posted above). Regarding HTML you just need to structure it properly, use meaningful words for CSS classes and IDs for instance.

    And in CSS don't let it be all upside down, group it some way. There are coders that sort their IDs and classes alphabetically but I'm not sure it's a good idea. For instance, I have some "global" css elements defined that are used all over the site. Then I separate it between pages and containers within those pages.

    You just need to find that makes it easier for you to maintain the code once you're halfway there. You can't let it be all upside down.
     
    ntmedia, May 4, 2013 IP