article

rev-013

UPDATE FEATURE #] # - code optimization JS select3_s.js 

  1. x] FILES = 1
    1. x] JS select3_s - validate code using ls
  2. *] WHAT= x] UPDATE FEATURE -  JS select3_s.js - run this code through the 'js lint' tool for validating the js, 
    1. *] this should be a best practice
    2. *] and also be part of an automated build process ( see how to article - where Visual Studio 'save' event triggers  )
    3. BUT - time consuming b/c its very, very nitpicky about a lot of details that impact the readability and consistency of the code, BUT NOT the actual functionality of the script
      1. ] spaces, 
      2. ] indentation - every brackets in exactly the right place, 
      3. ] format - every statement function name(arg1, arg2) {
      4. *] you can configure the tool with options to ignore certain things (ex messy whitespace) but  if you start to ignore/tolerate a lot of what  its checking why bother with checking in first place ???
  3. x] REPLACES=
    1. x] none - updates existing page with perfectly formatted js code
  4. x] DATE=
    1. x] 2013-08-10
Details Photos Edit more

Details

ID: 1648

NAME: rev-013

DESCRIPTION: {"UPDATE":"FEA #] # - JS select3 - code ","DESC":"linted"}

AUTHOR: article.author/s

EDITOR: article.editor/s

PUBLISHER: article.publisher/s

STATUS: Written

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

page_photo

actions

Email Email-Owner SMS and