code-guide
code-guide copied to clipboard
Add reason for new lines at end of files
Under 'Editor Preferences', there is the suggestion to "Add new line at end of files." I'd not really come across this idea before (although seen it in many files and Terminal systems) and wasn't quite sure of the reason. After doing some research, the best example of a positive reason to do it was here: http://evanhahn.com/newline-necessary-at-the-end-of-javascript-files/
It might be good to add a link to an explanation of why you would want to do this, in the guide.
This has to do with a system distinguishing between text files (containing "lines") and binary files (which typically don't contain "lines").
More here: http://markmail.org/message/5jsn4epq7ad3vyvt