[thelist] Coning conventions, pet peeves

Jason Handby jason.handby at corestar.co.uk
Fri Apr 29 19:17:01 CDT 2016


> Two things I like to go against the grain on to make code more readable for
> myself -
> 
> var message = 'This makes it easier for me to write HTML in JS';
> var mightDriveOthersCrazy = '<h1>'
>   + message
>   + '</h1>';
> 
> Also -
> 
> function functionWithManyArguments(
>   firstArg,
>   anotherArg,
>   thirdArg,
>   yetAnother
> ) {
>   console.log('Any more than three arguments becomes hard to read for me
> unless I use line breaks between them');
> }

Yeah I pretty much do this - I'm massively in favour of readability; developer time is expensive and my brain isn't getting any younger :) 

Jason



More information about the thelist mailing list