<?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: A Word of Caution</title>
	<atom:link href="http://www.red-sweater.com/blog/95/a-word-of-caution/feed" rel="self" type="application/rss+xml" />
	<link>http://www.red-sweater.com/blog/95/a-word-of-caution</link>
	<description>Mac &#38; Technology Writings by Daniel Jalkut</description>
	<lastBuildDate>Wed, 17 Mar 2010 22:33:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/95/a-word-of-caution/comment-page-1#comment-1170</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Sat, 11 Mar 2006 23:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/95/a-word-of-caution#comment-1170</guid>
		<description>I use a variation on the &quot;source tagging&quot; technique suggested by Mike. For historical reasons, the tag I use is my initials surrounded by bullets: •DCJ•. This has the advantage of being absolutely impossible to be mistaken for anything else, but did manage to expose an &lt;a href=&quot;http://www.red-sweater.com/blog/67/xcode-search-gone-mad&quot; rel=&quot;nofollow&quot;&gt;annoying bug&lt;/a&gt; in Xcode.

Of course it doesn&#039;t have the same &quot;constant reminder&quot; advantages of the #warn technique, but perhaps some a clever shell script could scan the sources and produce a reminder of all such items when a &quot;Release&quot; target is being built.</description>
		<content:encoded><![CDATA[<p>I use a variation on the &#8220;source tagging&#8221; technique suggested by Mike. For historical reasons, the tag I use is my initials surrounded by bullets: •DCJ•. This has the advantage of being absolutely impossible to be mistaken for anything else, but did manage to expose an <a href="http://www.red-sweater.com/blog/67/xcode-search-gone-mad" rel="nofollow">annoying bug</a> in Xcode.</p>
<p>Of course it doesn&#8217;t have the same &#8220;constant reminder&#8221; advantages of the #warn technique, but perhaps some a clever shell script could scan the sources and produce a reminder of all such items when a &#8220;Release&#8221; target is being built.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.red-sweater.com/blog/95/a-word-of-caution/comment-page-1#comment-1162</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 11 Mar 2006 20:50:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/95/a-word-of-caution#comment-1162</guid>
		<description>Jamie - I suggest coming up with a convention for comments for TODOs, like &quot;//TODO: remember to ...&quot; and then using the &#039;Find in Project&#039; command to keep track of them. That works for me, and got me off the habit of using #warning as well...</description>
		<content:encoded><![CDATA[<p>Jamie &#8211; I suggest coming up with a convention for comments for TODOs, like &#8220;//TODO: remember to &#8230;&#8221; and then using the &#8216;Find in Project&#8217; command to keep track of them. That works for me, and got me off the habit of using #warning as well&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Kirkpatrick</title>
		<link>http://www.red-sweater.com/blog/95/a-word-of-caution/comment-page-1#comment-1158</link>
		<dc:creator>Jamie Kirkpatrick</dc:creator>
		<pubDate>Sat, 11 Mar 2006 18:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/95/a-word-of-caution#comment-1158</guid>
		<description>I like the idea of -Werror, but unfortunately I rely on stuff such as ...

&quot;#warning remember to do something really important here when you get round to it&quot;.

If someone can suggest a better way of doing that Ill flip the switch.</description>
		<content:encoded><![CDATA[<p>I like the idea of -Werror, but unfortunately I rely on stuff such as &#8230;</p>
<p>&#8220;#warning remember to do something really important here when you get round to it&#8221;.</p>
<p>If someone can suggest a better way of doing that Ill flip the switch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/95/a-word-of-caution/comment-page-1#comment-956</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Wed, 22 Feb 2006 14:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/95/a-word-of-caution#comment-956</guid>
		<description>Thanks Rickla for the funny anecode and for the corrections. You&#039;ve discovered my &quot;sounds like dummy&quot; weakness! :)</description>
		<content:encoded><![CDATA[<p>Thanks Rickla for the funny anecode and for the corrections. You&#8217;ve discovered my &#8220;sounds like dummy&#8221; weakness! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rickla</title>
		<link>http://www.red-sweater.com/blog/95/a-word-of-caution/comment-page-1#comment-955</link>
		<dc:creator>Rickla</dc:creator>
		<pubDate>Wed, 22 Feb 2006 06:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/95/a-word-of-caution#comment-955</guid>
		<description>WARNING: EXTRANEOUS APOSTROPHES DETECTED!

1.
it’s bacteria-busting attributes are proudly highlighted on the soap
should be
its bacteria-busting attributes are proudly highlighted on the soap

2.
So when programmer’s come in from the storm of everyday warnings
should be
So when programmers come in from the storm of everyday warnings</description>
		<content:encoded><![CDATA[<p>WARNING: EXTRANEOUS APOSTROPHES DETECTED!</p>
<p>1.<br />
it’s bacteria-busting attributes are proudly highlighted on the soap<br />
should be<br />
its bacteria-busting attributes are proudly highlighted on the soap</p>
<p>2.<br />
So when programmer’s come in from the storm of everyday warnings<br />
should be<br />
So when programmers come in from the storm of everyday warnings</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rickla</title>
		<link>http://www.red-sweater.com/blog/95/a-word-of-caution/comment-page-1#comment-954</link>
		<dc:creator>Rickla</dc:creator>
		<pubDate>Wed, 22 Feb 2006 06:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/95/a-word-of-caution#comment-954</guid>
		<description>Another desiccant anecdote:- A Japanese friend of mine when I was living in London gave me a packet of Japanese green tea. There was a tiny sachet inside the pack of tea with various cool symbols in Japanese. I assumed it was some kind of flavouring and added it to the tea and served it up to all my friends. The tea tasted disgusting (ultra-bitter), but we just assumed that it was an acquired taste and drank several cups each. The Japanese friend told us afterwards what the pack was and I never made the same mistake again.</description>
		<content:encoded><![CDATA[<p>Another desiccant anecdote:- A Japanese friend of mine when I was living in London gave me a packet of Japanese green tea. There was a tiny sachet inside the pack of tea with various cool symbols in Japanese. I assumed it was some kind of flavouring and added it to the tea and served it up to all my friends. The tea tasted disgusting (ultra-bitter), but we just assumed that it was an acquired taste and drank several cups each. The Japanese friend told us afterwards what the pack was and I never made the same mistake again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iSee</title>
		<link>http://www.red-sweater.com/blog/95/a-word-of-caution/comment-page-1#comment-946</link>
		<dc:creator>iSee</dc:creator>
		<pubDate>Tue, 21 Feb 2006 11:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/95/a-word-of-caution#comment-946</guid>
		<description>Hi, I do agree, but also _some_ compiler warnings are plain stupid.
The Compiler we use at work, gives warnings for unused routines (dead code) and worse, routines that will not return control (error routines where you just want to give up and exit). The SQL plugin warns on DELETE without WHERE condition.
The first two are often used for included error-handling-code, the last is the way to go for reused temporary tables. The first two can be worked around (but the resulting code is ugly) and the latter forces you to occasionally check the full compiler output, if anything serious has happened.

Anyway you are right, but interactive compilers would be much nicer in any way. I think of something integrating with an editor (like SubEthaEdit) adding comments: &quot;You know that case will fail if…&quot; and you can say. &quot;Yeah, I checked that, don&#039;t warn me again for this occurrence&quot;

Cheers, iSee</description>
		<content:encoded><![CDATA[<p>Hi, I do agree, but also _some_ compiler warnings are plain stupid.<br />
The Compiler we use at work, gives warnings for unused routines (dead code) and worse, routines that will not return control (error routines where you just want to give up and exit). The SQL plugin warns on DELETE without WHERE condition.<br />
The first two are often used for included error-handling-code, the last is the way to go for reused temporary tables. The first two can be worked around (but the resulting code is ugly) and the latter forces you to occasionally check the full compiler output, if anything serious has happened.</p>
<p>Anyway you are right, but interactive compilers would be much nicer in any way. I think of something integrating with an editor (like SubEthaEdit) adding comments: &#8220;You know that case will fail if…&#8221; and you can say. &#8220;Yeah, I checked that, don&#8217;t warn me again for this occurrence&#8221;</p>
<p>Cheers, iSee</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominic Mitchell</title>
		<link>http://www.red-sweater.com/blog/95/a-word-of-caution/comment-page-1#comment-739</link>
		<dc:creator>Dominic Mitchell</dc:creator>
		<pubDate>Thu, 02 Feb 2006 23:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/95/a-word-of-caution#comment-739</guid>
		<description>Hmmm, whilst I&#039;m all in agreement with you about warnings, they&#039;re not that easy to eradicate if you don&#039;t understand them.  I&#039;ve recently been perplexed by some new warnings introduced to previously find code by gcc 4 about pointer-signedness.  Sadly, I can&#039;t track down any helpful information about how to fix the damned thing.  So for now, it stays that way, until my knowledge increases...  But it sure does irritate me knowing that warning is sitting there!</description>
		<content:encoded><![CDATA[<p>Hmmm, whilst I&#8217;m all in agreement with you about warnings, they&#8217;re not that easy to eradicate if you don&#8217;t understand them.  I&#8217;ve recently been perplexed by some new warnings introduced to previously find code by gcc 4 about pointer-signedness.  Sadly, I can&#8217;t track down any helpful information about how to fix the damned thing.  So for now, it stays that way, until my knowledge increases&#8230;  But it sure does irritate me knowing that warning is sitting there!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/95/a-word-of-caution/comment-page-1#comment-735</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Thu, 02 Feb 2006 14:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/95/a-word-of-caution#comment-735</guid>
		<description>I&#039;m really sad to hear about people actually eating silica gel packs.

Matt: I absolutely disagree about ignoring &quot;some warnings.&quot; It&#039;s a major part of my complaint - once you ignore a single warning it becomes a slipperly slope and unarguably evil warnings will slip in. 

For the example you cite, the warning from gcc is &quot;warning: suggest parentheses around assignment used as truth value.&quot; And it&#039;s great advice. How do you fix it? Just follow the advice. You end up with &quot;if ((i=1)){};&quot; which looks kind of goofy, but you know what? You&#039;re doing something goofy. :) So you put the double-parens in to a) quiet the compiler and b) remind yourself later that you meant to do something goofy there.

Do whatever it takes to quiet the compiler! Or you won&#039;t be able to tell when it&#039;s not crying wolf.  In the worst case scenario, I would even suggest turning off particular warnings so that at least you can see when your code goes from quiet to noisy to for the particular set of enabled warnings.

Looks like visitor 32,768 came while I was sleeping. Alas! I should probably take that line out anyway - it came with a plugin I put it in when I started the blog and I&#039;m not sure how accurate it is. 

If you have ideas for how to fix the &quot;Enable live preview&quot; checkbox width, please comment on &lt;a href=&quot;http://www.red-sweater.com/blog/94/live-preview-or-die&quot; rel=&quot;nofollow&quot;&gt;on this entry.&lt;/a&gt; Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;m really sad to hear about people actually eating silica gel packs.</p>
<p>Matt: I absolutely disagree about ignoring &#8220;some warnings.&#8221; It&#8217;s a major part of my complaint &#8211; once you ignore a single warning it becomes a slipperly slope and unarguably evil warnings will slip in. </p>
<p>For the example you cite, the warning from gcc is &#8220;warning: suggest parentheses around assignment used as truth value.&#8221; And it&#8217;s great advice. How do you fix it? Just follow the advice. You end up with &#8220;if ((i=1)){};&#8221; which looks kind of goofy, but you know what? You&#8217;re doing something goofy. :) So you put the double-parens in to a) quiet the compiler and b) remind yourself later that you meant to do something goofy there.</p>
<p>Do whatever it takes to quiet the compiler! Or you won&#8217;t be able to tell when it&#8217;s not crying wolf.  In the worst case scenario, I would even suggest turning off particular warnings so that at least you can see when your code goes from quiet to noisy to for the particular set of enabled warnings.</p>
<p>Looks like visitor 32,768 came while I was sleeping. Alas! I should probably take that line out anyway &#8211; it came with a plugin I put it in when I started the blog and I&#8217;m not sure how accurate it is. </p>
<p>If you have ideas for how to fix the &#8220;Enable live preview&#8221; checkbox width, please comment on <a href="http://www.red-sweater.com/blog/94/live-preview-or-die" rel="nofollow">on this entry.</a> Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Hendry</title>
		<link>http://www.red-sweater.com/blog/95/a-word-of-caution/comment-page-1#comment-734</link>
		<dc:creator>Jon Hendry</dc:creator>
		<pubDate>Thu, 02 Feb 2006 13:50:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/95/a-word-of-caution#comment-734</guid>
		<description>Then there&#039;s the mysterious warning on Preparation H, cautioning people not to use it if they&#039;re on anti-depressants. Huh?

Or, so I hear anyway.</description>
		<content:encoded><![CDATA[<p>Then there&#8217;s the mysterious warning on Preparation H, cautioning people not to use it if they&#8217;re on anti-depressants. Huh?</p>
<p>Or, so I hear anyway.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
