<?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: Casting Data Types and Testing Boundaries</title>
	<atom:link href="http://www.testingmentor.com/imtesty/2009/11/13/casting-data-types-and-testing-boundaries/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.testingmentor.com/imtesty/2009/11/13/casting-data-types-and-testing-boundaries/</link>
	<description>Treatises on the practice of software testing</description>
	<lastBuildDate>Mon, 06 Sep 2010 15:27:05 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: testingmentor</title>
		<link>http://www.testingmentor.com/imtesty/2009/11/13/casting-data-types-and-testing-boundaries/comment-page-1/#comment-133</link>
		<dc:creator>testingmentor</dc:creator>
		<pubDate>Sat, 14 Nov 2009 04:23:12 +0000</pubDate>
		<guid isPermaLink="false">http://testingmentor.com/imtesty/2009/11/13/casting-data-types-and-testing-boundaries/#comment-133</guid>
		<description>Hi Dennis,

Sorry, I struck a nerve. A strongly typed language is relative to what it is being compared. As you point out C is more strongly typed than some languages, but less than others.

I very much agree with your statement about design and usability issues and the &quot;silent, over-generous acceptance of inputs.&quot; Over-generous allowance of inputs coupled with implicit casting is a classic example where boundary type defects can occur.

This bug is not caused by a flaw in the programming language per se, but a flaw in the design and implementation. The more a tester understands fundamental programming concepts (and the specifics of a particular programming language) the better he/she will be at identifying areas of high risk, and generating a rich set of tests that have a higher probability of exposing an error or demonstrating correctness and limit redundancy.

- Bj -

Wednesday, September 05, 2007 2:54 PM by I.M.Testy</description>
		<content:encoded><![CDATA[<p>Hi Dennis,</p>
<p>Sorry, I struck a nerve. A strongly typed language is relative to what it is being compared. As you point out C is more strongly typed than some languages, but less than others.</p>
<p>I very much agree with your statement about design and usability issues and the &#8220;silent, over-generous acceptance of inputs.&#8221; Over-generous allowance of inputs coupled with implicit casting is a classic example where boundary type defects can occur.</p>
<p>This bug is not caused by a flaw in the programming language per se, but a flaw in the design and implementation. The more a tester understands fundamental programming concepts (and the specifics of a particular programming language) the better he/she will be at identifying areas of high risk, and generating a rich set of tests that have a higher probability of exposing an error or demonstrating correctness and limit redundancy.</p>
<p>- Bj -</p>
<p>Wednesday, September 05, 2007 2:54 PM by I.M.Testy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: testingmentor</title>
		<link>http://www.testingmentor.com/imtesty/2009/11/13/casting-data-types-and-testing-boundaries/comment-page-1/#comment-132</link>
		<dc:creator>testingmentor</dc:creator>
		<pubDate>Sat, 14 Nov 2009 04:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://testingmentor.com/imtesty/2009/11/13/casting-data-types-and-testing-boundaries/#comment-132</guid>
		<description>Sorry, I drove off the rails when I saw &quot;programming languages that are not strongly typed (such as C).&quot;  C Language is strongly-typed of course.  I think the confusion has to do with the fact that C allows types to be implicitly determined (usually int) in the absence of explicit declaration.  That and the ability to cast a pointer to anything means you can (1) be confused and (2) create a lot of mischief.

The language is still strongly-typed, just not the way Java or C# are (where the ability to cast references is constrained and storage representation is not exposed).

Having gotten that off of my chest, I think the article is on point concerning boundary testing.  

My suspicion is that the &quot;casting&quot; in the MSPaint example is between strings and desired value format, although the model for fractional pixels (there are such things on some occasions).  The silent, over-generous acceptance of inputs raises a whole set of usability issues and design considerations.  I am not surprised that this is left to resolution by user trial-and-error discovery.  

Because it has become fodder for your example, I wager this MSPaint dialog interface is neither well-specified nor well-documented if it raises testing issues now.  It is not a programming-language problem as such.

Wednesday, September 05, 2007 2:19 PM by Dennis E. Hamilton</description>
		<content:encoded><![CDATA[<p>Sorry, I drove off the rails when I saw &#8220;programming languages that are not strongly typed (such as C).&#8221;  C Language is strongly-typed of course.  I think the confusion has to do with the fact that C allows types to be implicitly determined (usually int) in the absence of explicit declaration.  That and the ability to cast a pointer to anything means you can (1) be confused and (2) create a lot of mischief.</p>
<p>The language is still strongly-typed, just not the way Java or C# are (where the ability to cast references is constrained and storage representation is not exposed).</p>
<p>Having gotten that off of my chest, I think the article is on point concerning boundary testing.  </p>
<p>My suspicion is that the &#8220;casting&#8221; in the MSPaint example is between strings and desired value format, although the model for fractional pixels (there are such things on some occasions).  The silent, over-generous acceptance of inputs raises a whole set of usability issues and design considerations.  I am not surprised that this is left to resolution by user trial-and-error discovery.  </p>
<p>Because it has become fodder for your example, I wager this MSPaint dialog interface is neither well-specified nor well-documented if it raises testing issues now.  It is not a programming-language problem as such.</p>
<p>Wednesday, September 05, 2007 2:19 PM by Dennis E. Hamilton</p>
]]></content:encoded>
	</item>
</channel>
</rss>
