design - Is too much white space in source code frowned upon? -
i using white space in code organize functions , make more readable. idea if can organize visually easily, can organize mentally easy. understand company might ask format code way, suppose asking in more general sense. example:
function cons_js ( css_cons ) { var _cons_js = document . createelement ( 'textarea' ); css_cons ? _cons_js . setattribute ( 'style', css_cons ) : _cons_js . setattribute ( 'style', css_cons_def() ); document . body . appendchild ( _cons_js ); _cons_js . setattribute ('spellcheck', false ); . html = _cons_js; return this; }
you're correct different organizations have different styles. projects ask conform style guide style of codebase project uniform. however, if you're writing code project use, feel free whatever want long syntactically correct.
if you're asking personal opinion, think whitespace around .
's should removed, around parentheses.
Comments
Post a Comment