Ensure your JS code is nice and clean.

Discussion in 'JavaScript' started by stephan2307, Nov 9, 2012.

  1. #1
    I have seen a lot of messy JavaScript in my days ( half of it written by me ).

    However it makes it a lot easier to maintain, debug, extend etc your code if it is nice and clean.

    Sooooo run your code through JSLint before you ask for help.
     
    stephan2307, Nov 9, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    Then run it through compressor to cut load time. (Yes, you have to maintain 2 copies of each js file if you want to do things properly.)
     
    Rukbat, Nov 22, 2012 IP
  3. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #3
    that's right. people think it's complicated but it really isn't.
     
    stephan2307, Nov 23, 2012 IP