How to check a site's code?

Discussion in 'Programming' started by nick2007, Nov 16, 2010.

  1. #1
    How to check if a site's code is all right? is it any free tool for it?
     
    nick2007, Nov 16, 2010 IP
  2. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What 'code' are you talking about here? and what do you mean by 'right'? syntactically correct, conforming to known standards, bug free, efficient, compact, easy to maintain?
     
    Deacalion, Nov 17, 2010 IP
  3. badhim

    badhim Member

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    HTML Validator - validator.w3.org/
    CSS Validator - jigsaw.w3.org/css-validator/
     
    badhim, Nov 17, 2010 IP
  4. senthilt

    senthilt Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i use validator.w3.org, this can validate any html/php and css codes.
     
    senthilt, Nov 17, 2010 IP
  5. nick2007

    nick2007 Well-Known Member

    Messages:
    1,546
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    128
    #5
    Thank you for the answers.
     
    nick2007, Nov 18, 2010 IP
  6. varun089

    varun089 Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    validator url helped a lot thank you :)
     
    varun089, Nov 18, 2010 IP
  7. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Valid =/= Right

    A site can be "valid" and that doesnt either mean that it will display "right" nor that what it is displaying is "right".

    If your testing the "how" (ie what it looks like) then its a case of checking different browser and OS combinations. There are tools for testing the basic page for free but they won;t check that mouseovers or javascript are right

    If your testing the "what" (ie that if your logged in it shows your name and not someone elses) then again there are some tools but I don;t know of any free ones and there is a fair learning curve to programme them with test cases (generally only efficient with complex and long forms)
     
    AstarothSolutions, Nov 19, 2010 IP
  8. hassanjawed

    hassanjawed Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    are you talking about status code??
     
    hassanjawed, Nov 26, 2010 IP
  9. Mike Rader

    Mike Rader Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    No one other than you knows what the output should be for a specific URL. I would always suggest to learn how to do unit testing and integration testing. Also there is an opensource tool available called selenium provided by Thoughtworks. You can use that to validate that your site throws expected pages only. In fact using selenium you can simulate the whole user experience (each work flow) and run it every time you have done some changes to the site so as to ensure that you haven't broken any existing flow. Hope this helps

    Regards,
    Mike
     
    Mike Rader, Nov 27, 2010 IP