<?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: Word Counting in C++: Implementing a Simple Word Counter	</title>
	<atom:link href="https://www.fluentcpp.com/2018/10/12/word-counting-cpp-simple-word-counter/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2018/10/12/word-counting-cpp-simple-word-counter/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Wed, 16 Jan 2019 12:53:09 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.4</generator>
	<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2018/10/12/word-counting-cpp-simple-word-counter/#comment-1457</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Sat, 10 Nov 2018 19:09:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=4252#comment-1457</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/10/12/word-counting-cpp-simple-word-counter/#comment-1453&quot;&gt;Malcolm Parsons&lt;/a&gt;.

Excellent, thanks!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/10/12/word-counting-cpp-simple-word-counter/#comment-1453">Malcolm Parsons</a>.</p>
<p>Excellent, thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Malcolm Parsons		</title>
		<link>https://www.fluentcpp.com/2018/10/12/word-counting-cpp-simple-word-counter/#comment-1453</link>

		<dc:creator><![CDATA[Malcolm Parsons]]></dc:creator>
		<pubDate>Fri, 09 Nov 2018 12:29:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=4252#comment-1453</guid>

					<description><![CDATA[Pass token_compress_on to boost::split() to avoid the empty strings.]]></description>
			<content:encoded><![CDATA[<p>Pass token_compress_on to boost::split() to avoid the empty strings.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: M Limber		</title>
		<link>https://www.fluentcpp.com/2018/10/12/word-counting-cpp-simple-word-counter/#comment-1388</link>

		<dc:creator><![CDATA[M Limber]]></dc:creator>
		<pubDate>Fri, 12 Oct 2018 19:32:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=4252#comment-1388</guid>

					<description><![CDATA[I only wish you had included tests as part of your first iteration. :-) That helps you keep yourself honest as you move forward and is an excellent way to learn to write quality code, even if you&#039;re not doing TDD. Catch2 makes it so easy!]]></description>
			<content:encoded><![CDATA[<p>I only wish you had included tests as part of your first iteration. 🙂 That helps you keep yourself honest as you move forward and is an excellent way to learn to write quality code, even if you&#8217;re not doing TDD. Catch2 makes it so easy!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jft		</title>
		<link>https://www.fluentcpp.com/2018/10/12/word-counting-cpp-simple-word-counter/#comment-1387</link>

		<dc:creator><![CDATA[jft]]></dc:creator>
		<pubDate>Fri, 12 Oct 2018 16:32:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=4252#comment-1387</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/10/12/word-counting-cpp-simple-word-counter/#comment-1386&quot;&gt;maxim1000&lt;/a&gt;.

... and also that you might want to ignore certain words such as std, auto, const etc etc. Also knowing the line numbers for the words would also be useful IMO.



Possibly not an issue with the size of the intended program files, but the algorithm is not optimised for the best performance. The code is creating a vector, a map then another vector which is sorted! For a file of several Mbs with thousands of different words, this is slooooooow...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/10/12/word-counting-cpp-simple-word-counter/#comment-1386">maxim1000</a>.</p>
<p>&#8230; and also that you might want to ignore certain words such as std, auto, const etc etc. Also knowing the line numbers for the words would also be useful IMO.</p>
<p>Possibly not an issue with the size of the intended program files, but the algorithm is not optimised for the best performance. The code is creating a vector, a map then another vector which is sorted! For a file of several Mbs with thousands of different words, this is slooooooow&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: maxim1000		</title>
		<link>https://www.fluentcpp.com/2018/10/12/word-counting-cpp-simple-word-counter/#comment-1386</link>

		<dc:creator><![CDATA[maxim1000]]></dc:creator>
		<pubDate>Fri, 12 Oct 2018 09:12:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=4252#comment-1386</guid>

					<description><![CDATA[getWordCount function return type WordCount - looks normal, there is a temporary variable wordCount inside of the function getWordCount - natural. But the function returns sortedWordCount.


The names themselves suggest that there is something strange here :) Digging into such strange places may hint some problems.


[Please, add &quot;IMHO&quot; to each of the following sentences]



First problem is that we use an undocumented feature of getWordCount inside of print function - order of words in the resulting container. getWordCount returns WordCount, not SortedWordCount and there is nothing suggesting that it will be sorted.



Second problem is that sorting looks more like something related to how we show information, not how we get it. We may want to show longest names used at least 10 times, or most popular one-letter symbol. It seems to naturally belong to print, not getWordCount.]]></description>
			<content:encoded><![CDATA[<p>getWordCount function return type WordCount &#8211; looks normal, there is a temporary variable wordCount inside of the function getWordCount &#8211; natural. But the function returns sortedWordCount.</p>
<p>The names themselves suggest that there is something strange here 🙂 Digging into such strange places may hint some problems.</p>
<p>[Please, add &#8220;IMHO&#8221; to each of the following sentences]</p>
<p>First problem is that we use an undocumented feature of getWordCount inside of print function &#8211; order of words in the resulting container. getWordCount returns WordCount, not SortedWordCount and there is nothing suggesting that it will be sorted.</p>
<p>Second problem is that sorting looks more like something related to how we show information, not how we get it. We may want to show longest names used at least 10 times, or most popular one-letter symbol. It seems to naturally belong to print, not getWordCount.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bartlomiej Filipek		</title>
		<link>https://www.fluentcpp.com/2018/10/12/word-counting-cpp-simple-word-counter/#comment-1385</link>

		<dc:creator><![CDATA[Bartlomiej Filipek]]></dc:creator>
		<pubDate>Fri, 12 Oct 2018 06:51:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=4252#comment-1385</guid>

					<description><![CDATA[little hack from my side :)
 coliru stores your code in &quot;main.cpp&quot; in the directory with the executable file.

So you can just read &quot;main.cpp&quot; into your &quot;code&quot; string.

http://coliru.stacked-crooked.com/a/1227cdfdaf3c8da7]]></description>
			<content:encoded><![CDATA[<p>little hack from my side 🙂<br />
 coliru stores your code in &#8220;main.cpp&#8221; in the directory with the executable file.</p>
<p>So you can just read &#8220;main.cpp&#8221; into your &#8220;code&#8221; string.</p>
<p><a href="http://coliru.stacked-crooked.com/a/1227cdfdaf3c8da7" rel="nofollow ugc">http://coliru.stacked-crooked.com/a/1227cdfdaf3c8da7</a></p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
