<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Newline at end of file</title>
	<atom:link href="http://lostechies.com/chrismissal/2012/03/23/newline-at-end-of-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/chrismissal/2012/03/23/newline-at-end-of-file/</link>
	<description>Thoughts while working and playing as a Software Developer</description>
	<lastBuildDate>Thu, 11 Apr 2013 16:53:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Edwin Castro</title>
		<link>http://lostechies.com/chrismissal/2012/03/23/newline-at-end-of-file/#comment-339</link>
		<dc:creator>Edwin Castro</dc:creator>
		<pubDate>Tue, 27 Mar 2012 05:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=107#comment-339</guid>
		<description>Old *NIX gurus tend to *always* have a new line at the end of a text file. In *NIX, where nearly everything you do is text processing, you have a lot of tools that can process files on a line by line basis. Having you last line in the file contain a new line keeps the last line in the file consistent with all other lines in the file. Immediately after that last new line character you see EOF.

Other than for consistency and so that your tools work better together, I don&#039;t see any good reason for one convention over the other.

I&#039;m personally on the fence on this one, but I think I lean more towards ending text files with a new line.</description>
		<content:encoded><![CDATA[<p>Old *NIX gurus tend to *always* have a new line at the end of a text file. In *NIX, where nearly everything you do is text processing, you have a lot of tools that can process files on a line by line basis. Having you last line in the file contain a new line keeps the last line in the file consistent with all other lines in the file. Immediately after that last new line character you see EOF.</p>
<p>Other than for consistency and so that your tools work better together, I don&#8217;t see any good reason for one convention over the other.</p>
<p>I&#8217;m personally on the fence on this one, but I think I lean more towards ending text files with a new line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Missal</title>
		<link>http://lostechies.com/chrismissal/2012/03/23/newline-at-end-of-file/#comment-338</link>
		<dc:creator>Chris Missal</dc:creator>
		<pubDate>Mon, 26 Mar 2012 14:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=107#comment-338</guid>
		<description>Good call. I&#039;ve actually run into that issue before and had to concat &quot;file&quot; + newline + &quot;file&quot; and so on. It was annoying to say the least.</description>
		<content:encoded><![CDATA[<p>Good call. I&#8217;ve actually run into that issue before and had to concat &#8220;file&#8221; + newline + &#8220;file&#8221; and so on. It was annoying to say the least.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tsvetomir</title>
		<link>http://lostechies.com/chrismissal/2012/03/23/newline-at-end-of-file/#comment-337</link>
		<dc:creator>Tsvetomir</dc:creator>
		<pubDate>Mon, 26 Mar 2012 06:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=107#comment-337</guid>
		<description>Another benefit: concatenating files (say a header) is simpler with a newline at the end.</description>
		<content:encoded><![CDATA[<p>Another benefit: concatenating files (say a header) is simpler with a newline at the end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Missal</title>
		<link>http://lostechies.com/chrismissal/2012/03/23/newline-at-end-of-file/#comment-335</link>
		<dc:creator>Chris Missal</dc:creator>
		<pubDate>Sat, 24 Mar 2012 14:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=107#comment-335</guid>
		<description>I would agree that source files should be free from unnecessary *trailing* whitespace.

Here&#039;s what I mean about the diffs: 
http://imgur.com/a/LZdGv I don&#039;t want files to show as modified when logically they&#039;re not.

You&#039;re right about files ending with &#039;}&#039; and I would prefer consistency over &quot;my way&quot; any day.</description>
		<content:encoded><![CDATA[<p>I would agree that source files should be free from unnecessary *trailing* whitespace.</p>
<p>Here&#8217;s what I mean about the diffs: <br />
<a href="http://imgur.com/a/LZdGv I" rel="nofollow">http://imgur.com/a/LZdGv I</a> don&#8217;t want files to show as modified when logically they&#8217;re not.</p>
<p>You&#8217;re right about files ending with &#8216;}&#8217; and I would prefer consistency over &#8220;my way&#8221; any day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Missal</title>
		<link>http://lostechies.com/chrismissal/2012/03/23/newline-at-end-of-file/#comment-334</link>
		<dc:creator>Chris Missal</dc:creator>
		<pubDate>Sat, 24 Mar 2012 14:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=107#comment-334</guid>
		<description> But there are two reasons. The two I mentioned above.</description>
		<content:encoded><![CDATA[<p> But there are two reasons. The two I mentioned above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hwiechers</title>
		<link>http://lostechies.com/chrismissal/2012/03/23/newline-at-end-of-file/#comment-333</link>
		<dc:creator>Hwiechers</dc:creator>
		<pubDate>Sat, 24 Mar 2012 08:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=107#comment-333</guid>
		<description>You wouldn&#039;t want it because  source files should be free from unnecessary whitespace. It&#039;s the same reason that people freak out about trailing whitespace. 

Of your two points, I don&#039;t think the first makes much of a difference. 
The second depends on the editor you use, and if you&#039;re using a language where your files always end with &#039;}&#039;, the second isn&#039;t going to make much of a difference either.

Personally, I don&#039;t mind either way as long as it&#039;s consistent.</description>
		<content:encoded><![CDATA[<p>You wouldn&#8217;t want it because  source files should be free from unnecessary whitespace. It&#8217;s the same reason that people freak out about trailing whitespace. </p>
<p>Of your two points, I don&#8217;t think the first makes much of a difference.<br />
The second depends on the editor you use, and if you&#8217;re using a language where your files always end with &#8216;}&#8217;, the second isn&#8217;t going to make much of a difference either.</p>
<p>Personally, I don&#8217;t mind either way as long as it&#8217;s consistent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iulian Margarintescu</title>
		<link>http://lostechies.com/chrismissal/2012/03/23/newline-at-end-of-file/#comment-332</link>
		<dc:creator>Iulian Margarintescu</dc:creator>
		<pubDate>Sat, 24 Mar 2012 05:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=107#comment-332</guid>
		<description>There is no reason for having a new line at the end of file. There is also no reason for not having one. This is something is can leave with. If only this was the only debate... think about tabs vs spaces and you will instantly not care about that new line.</description>
		<content:encoded><![CDATA[<p>There is no reason for having a new line at the end of file. There is also no reason for not having one. This is something is can leave with. If only this was the only debate&#8230; think about tabs vs spaces and you will instantly not care about that new line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Missal</title>
		<link>http://lostechies.com/chrismissal/2012/03/23/newline-at-end-of-file/#comment-331</link>
		<dc:creator>Chris Missal</dc:creator>
		<pubDate>Sat, 24 Mar 2012 04:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=107#comment-331</guid>
		<description>Most recently I&#039;ve noticed it in Powershell, but usually JavaScript files come to mind.</description>
		<content:encoded><![CDATA[<p>Most recently I&#8217;ve noticed it in Powershell, but usually JavaScript files come to mind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Sohl</title>
		<link>http://lostechies.com/chrismissal/2012/03/23/newline-at-end-of-file/#comment-330</link>
		<dc:creator>Greg Sohl</dc:creator>
		<pubDate>Sat, 24 Mar 2012 04:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/chrismissal/?p=107#comment-330</guid>
		<description>What kind of text file? Is there an established convention? If this is a source code file then I&#039;ve not seen a benefit one way or another. </description>
		<content:encoded><![CDATA[<p>What kind of text file? Is there an established convention? If this is a source code file then I&#8217;ve not seen a benefit one way or another. </p>
]]></content:encoded>
	</item>
</channel>
</rss>
