<?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: 10 Techniques That Will Make You Understand Other People’s Code Better	</title>
	<atom:link href="https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Wed, 01 Aug 2018 16:57: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: mohammed saleem		</title>
		<link>https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1199</link>

		<dc:creator><![CDATA[mohammed saleem]]></dc:creator>
		<pubDate>Wed, 01 Aug 2018 16:57:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=3838#comment-1199</guid>

					<description><![CDATA[It would be nice if you had demonstrated the tricks with sample codebase of relative complexity. But these are very useful tips .thanks]]></description>
			<content:encoded><![CDATA[<p>It would be nice if you had demonstrated the tricks with sample codebase of relative complexity. But these are very useful tips .thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: arvindpdmn		</title>
		<link>https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1079</link>

		<dc:creator><![CDATA[arvindpdmn]]></dc:creator>
		<pubDate>Fri, 22 Jun 2018 11:40:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=3838#comment-1079</guid>

					<description><![CDATA[Nice one although I will not recommend refactoring for the purpose of learning the codebase. A relevant article I wrote long ago: https://indianengineeringdesignforum.wordpress.com/2016/10/13/essential-techniques-for-reading-other-developers-code/]]></description>
			<content:encoded><![CDATA[<p>Nice one although I will not recommend refactoring for the purpose of learning the codebase. A relevant article I wrote long ago: <a href="https://indianengineeringdesignforum.wordpress.com/2016/10/13/essential-techniques-for-reading-other-developers-code/" rel="nofollow ugc">https://indianengineeringdesignforum.wordpress.com/2016/10/13/essential-techniques-for-reading-other-developers-code/</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jft		</title>
		<link>https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1044</link>

		<dc:creator><![CDATA[jft]]></dc:creator>
		<pubDate>Thu, 07 Jun 2018 10:43:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=3838#comment-1044</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1043&quot;&gt;Taw Moto&lt;/a&gt;.

If you use just plain enums, then you pollute the namespace. Consider


enum paint {blue, green, red};
enum traffic {red, amber, green};


This won&#039;t compile as red and green are defined twice (and what value would you use for say red?). But in


enum class paint {blue, green, red};
enum class traffic {red, amber, green};


The members of each are unique and the above compiles OK.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1043">Taw Moto</a>.</p>
<p>If you use just plain enums, then you pollute the namespace. Consider</p>
<p>enum paint {blue, green, red};<br />
enum traffic {red, amber, green};</p>
<p>This won&#8217;t compile as red and green are defined twice (and what value would you use for say red?). But in</p>
<p>enum class paint {blue, green, red};<br />
enum class traffic {red, amber, green};</p>
<p>The members of each are unique and the above compiles OK.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Taw Moto		</title>
		<link>https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1043</link>

		<dc:creator><![CDATA[Taw Moto]]></dc:creator>
		<pubDate>Wed, 06 Jun 2018 19:35:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=3838#comment-1043</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1042&quot;&gt;jft&lt;/a&gt;.

Yes, thanks, but it looks very ugly...if cast is needed, why not use plain enums instead of enum class? Hmm]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1042">jft</a>.</p>
<p>Yes, thanks, but it looks very ugly&#8230;if cast is needed, why not use plain enums instead of enum class? Hmm</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jft		</title>
		<link>https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1042</link>

		<dc:creator><![CDATA[jft]]></dc:creator>
		<pubDate>Wed, 06 Jun 2018 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=3838#comment-1042</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1041&quot;&gt;Taw Moto&lt;/a&gt;.

You need to cast the enum colour to the required type


j &#038;= static_cast(Web_color::green);]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1041">Taw Moto</a>.</p>
<p>You need to cast the enum colour to the required type</p>
<p>j &amp;= static_cast(Web_color::green);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Taw Moto		</title>
		<link>https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1041</link>

		<dc:creator><![CDATA[Taw Moto]]></dc:creator>
		<pubDate>Wed, 06 Jun 2018 13:22:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=3838#comment-1041</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1040&quot;&gt;jft&lt;/a&gt;.

I know, I tried this, but it does not work: https://ideone.com/w86jWv]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1040">jft</a>.</p>
<p>I know, I tried this, but it does not work: <a href="https://ideone.com/w86jWv" rel="nofollow ugc">https://ideone.com/w86jWv</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jft		</title>
		<link>https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1040</link>

		<dc:creator><![CDATA[jft]]></dc:creator>
		<pubDate>Wed, 06 Jun 2018 13:05:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=3838#comment-1040</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1039&quot;&gt;Taw Moto&lt;/a&gt;.

Since c++11, you can specify the underlying base type for enum. See http://en.cppreference.com/w/cpp/language/enum


eg.


enum class myenum : uint32_t {color_red = 1, color_green = 2};]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1039">Taw Moto</a>.</p>
<p>Since c++11, you can specify the underlying base type for enum. See <a href="http://en.cppreference.com/w/cpp/language/enum" rel="nofollow ugc">http://en.cppreference.com/w/cpp/language/enum</a></p>
<p>eg.</p>
<p>enum class myenum : uint32_t {color_red = 1, color_green = 2};</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Taw Moto		</title>
		<link>https://www.fluentcpp.com/2018/06/05/10-techniques-that-will-make-you-understand-other-peoples-code-better/#comment-1039</link>

		<dc:creator><![CDATA[Taw Moto]]></dc:creator>
		<pubDate>Wed, 06 Jun 2018 10:54:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=3838#comment-1039</guid>

					<description><![CDATA[Hi Jonathan, sorry for offtopic, but is there a recommendation for bitmasks type in modern C++? I did not find it anywhere.
For example I have &quot;uint32_t var &#038;= color_red&quot;, what type should be color_red?
#define is &quot;deprecated&quot; in C++, enum class won&#039;t work, plain enum will convert to int (instead of unsigned int), static constexpr in class means that the class should have constructors deleted and so on...thank you]]></description>
			<content:encoded><![CDATA[<p>Hi Jonathan, sorry for offtopic, but is there a recommendation for bitmasks type in modern C++? I did not find it anywhere.<br />
For example I have &#8220;uint32_t var &amp;= color_red&#8221;, what type should be color_red?<br />
#define is &#8220;deprecated&#8221; in C++, enum class won&#8217;t work, plain enum will convert to int (instead of unsigned int), static constexpr in class means that the class should have constructors deleted and so on&#8230;thank you</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
