Suppose "use strict"; and suppose JSLint is enabled and errors cannot be ignored.
I find the operators and ',' initiated lists are so readable
eg:.
var i = 0 , j = 1 , someLongVariablename1 , someLongVariablename2 , someLongVariablename3 , someLongVariablename4; if( ( 'dcr' === cmd && (action) && ('get' === actionHttp || 'post' === actionHttp ) && whatever ) { ... }
Hence my question:
Is "Bad Linear Breaking" an obsolete "rigor"?
EDITED: 'use strict'; will not prevent the execution of an invalid line that violates the code. This may prevent some errors from occurring.
I see that JSLint and JSHint belong to a bad line, breaking it. JSHint is much more syntax friendly, which I prefer.
So, this may be a solution for others who are working on it.
Ron wertlen
source share