<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: 7 Names We Should Never See in Code	</title>
	<atom:link href="https://www.fluentcpp.com/2017/12/01/7-names-never-see-code/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2017/12/01/7-names-never-see-code/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Thu, 07 Dec 2017 05:35:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.3</generator>
	<item>
		<title>
		By: Alexey Titov		</title>
		<link>https://www.fluentcpp.com/2017/12/01/7-names-never-see-code/#comment-700</link>

		<dc:creator><![CDATA[Alexey Titov]]></dc:creator>
		<pubDate>Thu, 07 Dec 2017 05:35:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2700#comment-700</guid>

					<description><![CDATA[It depends. 

#1. iterator and book are different types. You can do ++iterator but with book... Does it make sense? So a book is not an iterator and iterator is not a book it is another type! 

#2. Yes sometimes it is much more expressive to give a variable reasonable name, but sometimes temporary is just temporary storage (i.e. backup means reserved copy and tmp is not a reserve it is just temporary storage)

#3. And again: it depends :)  function name nthPowerOf2(int n) is a little bit more expressive then nthPowerOfTwo(int n) (IMO), but otherwise i agree, that it is bad practice in general.

#5. I thought it is well-established term (like file handle, window handle etc). Wiki: In computer programming, a handle is an abstract reference to a resource. 

#6. As Miguel has already mentioned, one-letter variables are great in math code or array traversing (again, it is well-established practice)

#7. For example: std::atomic is pretty much self-explanatory and simple, while std::atomic is too redundant. But i agree with you when dealing with complex templates (i.e. more than one type, or type with some restrictions).

By the way, thanks for a great articles! Keep up the good work! ;)]]></description>
			<content:encoded><![CDATA[<p>It depends. </p>
<p>#1. iterator and book are different types. You can do ++iterator but with book&#8230; Does it make sense? So a book is not an iterator and iterator is not a book it is another type! </p>
<p>#2. Yes sometimes it is much more expressive to give a variable reasonable name, but sometimes temporary is just temporary storage (i.e. backup means reserved copy and tmp is not a reserve it is just temporary storage)</p>
<p>#3. And again: it depends 🙂  function name nthPowerOf2(int n) is a little bit more expressive then nthPowerOfTwo(int n) (IMO), but otherwise i agree, that it is bad practice in general.</p>
<p>#5. I thought it is well-established term (like file handle, window handle etc). Wiki: In computer programming, a handle is an abstract reference to a resource. </p>
<p>#6. As Miguel has already mentioned, one-letter variables are great in math code or array traversing (again, it is well-established practice)</p>
<p>#7. For example: std::atomic is pretty much self-explanatory and simple, while std::atomic is too redundant. But i agree with you when dealing with complex templates (i.e. more than one type, or type with some restrictions).</p>
<p>By the way, thanks for a great articles! Keep up the good work! 😉</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Miguel Raggi		</title>
		<link>https://www.fluentcpp.com/2017/12/01/7-names-never-see-code/#comment-695</link>

		<dc:creator><![CDATA[Miguel Raggi]]></dc:creator>
		<pubDate>Fri, 01 Dec 2017 03:21:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2700#comment-695</guid>

					<description><![CDATA[I don&#039;t agree with #6. a, b, x, etc. do express something, specially when doing mathematical programming.  Most mathematical computations look terrible with variables with 2-or-more letter names, because one can easily get confused between product and just a many-letter-name. Is abc the product of a and b and c, or is it just a variable named abc?

For example, struct Point2d { double x, y; } is a pretty good naming convention for, well, the x coordinate and the y coordinate. I&#039;d hate using &quot;abcissa&quot; and &quot;ordinate&quot; or some other weird name like that.

Another good place to use single letter names is that i and j are usually the indices for traversing an array. And don&#039;t say &quot;use range-based for or the STL&quot;. Sometimes you need the indices and sometimes you need to manipulate the indices. 

Anyway, the other ones are fine. Nice video.]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t agree with #6. a, b, x, etc. do express something, specially when doing mathematical programming.  Most mathematical computations look terrible with variables with 2-or-more letter names, because one can easily get confused between product and just a many-letter-name. Is abc the product of a and b and c, or is it just a variable named abc?</p>
<p>For example, struct Point2d { double x, y; } is a pretty good naming convention for, well, the x coordinate and the y coordinate. I&#8217;d hate using &#8220;abcissa&#8221; and &#8220;ordinate&#8221; or some other weird name like that.</p>
<p>Another good place to use single letter names is that i and j are usually the indices for traversing an array. And don&#8217;t say &#8220;use range-based for or the STL&#8221;. Sometimes you need the indices and sometimes you need to manipulate the indices. </p>
<p>Anyway, the other ones are fine. Nice video.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
