{"id":3090,"date":"2018-02-07T23:10:32","date_gmt":"2018-02-07T21:10:32","guid":{"rendered":"http:\/\/asym.dk\/?p=3090"},"modified":"2018-02-07T23:10:32","modified_gmt":"2018-02-07T21:10:32","slug":"immanuel-kant-and-the-hallucinating-tester","status":"publish","type":"post","link":"http:\/\/www.asym.dk\/index.php\/2018\/02\/07\/immanuel-kant-and-the-hallucinating-tester\/","title":{"rendered":"Immanuel Kant and the Hallucinating Tester"},"content":{"rendered":"<p>Quality is an illusion. That may seem like a bold statement, but there is a deeper truth to it that I will discuss in this blog. I&#8217;ll also discuss how we can approach the real.<br \/>\nWe can think of testers as doctors, scientists, or researchers whose job is to research, explore, or examine some software, gather, analyze, and communicate factual knowledge based on observations.<br \/>\nBut science teaches us that when we research and observe things, including software, what we \u201csee\u201d is not reality. At <a href=\"https:\/\/www.ted.com\/talks\/anil_seth_how_your_brain_hallucinates_your_conscious_reality\" target=\"_blank\" rel=\"noopener noreferrer\">TED 2017, University of Sussex neuroscience professor Anil Seth called what we see &#8220;hallucinations&#8221;<\/a>.<br \/>\nThis gives the hopefully scientific tester some severe epistemological challenges: As she is a person, and is hallucinating, how can she (or we) trust her observations?<br \/>\nThe problem for her is that the images that she experiences as real are a synthesis, an intuitive product of her observances based on a minimal amount of sensory data. The critical mindset is important in testing but doesn\u2019t help by itself.<br \/>\nFortunately philosophy has a solution for her (and us). Before I explain it, let me share a daily life story about intuitive illusions and assumptions.<br \/>\n&nbsp;<\/p>\n<h2><strong>Walking on Black Ice<\/strong><\/h2>\n<p>I was out walking my poodle Terry a few days ago. A car came against us, but as we were on the sidewalk and the car on the road, the situation was intuitively safe.<br \/>\nUnfortunately, my intuition turned out to be wrong as only a moment later my foot slipped on the sidewalk and I realized that the wet road was not wet; both the road and the sidewalk were covered in black ice.<br \/>\nWhen another car approached I was aware of the danger, and made sure to keep myself and my dog safe.<br \/>\nThere could be a moral in this story about always being cautious about cars and roads, but it might end up in over-cautiousness of the type that grandmothers sometimes impose on their grandchildren.<br \/>\nInstead I consider it a reminder that we don\u2019t see things as they are: The road was wet until my foot slipped and I realized it was icy.<br \/>\nAlready the Stoic philosophers in Rome 2000 years ago had figured this out.<br \/>\n&nbsp;<\/p>\n<h2><strong>Immanuel Kant\u2019s Model of Mind<\/strong><\/h2>\n<p>In 1781 the German philosopher Immanuel Kant published his mammoth work Critique of Pure Reason in which a key concept is the transcendental, which can be thought of as a bridge between the real and the hallucination.<br \/>\nLet me explain: Something that is only realized by intuition, dreams, myths etc, and which doesn\u2019t link to experience, is <em>transcendent<\/em>. Something realized by pairing sensing and experience is <em>transcendental<\/em>.<br \/>\nKant\u2019s model is simple and straightforward, as Kant was pedantic, but it still needs some explanation:<br \/>\nOutside us is of course the objects which we sense. Kant calls them \u201cthe things in themselves\u201d. It could be the road I was walking with my dog.<br \/>\nKant thinks of us as rational beings who act on the basis of the thing in itself, and that has caused much debate. Skepticism will claim that the thing in itself is not available, and that there is only the subjective experience. Logical positivism will claim that the thing in itself doesn&#8217;t exist at all. Realism will doubt the subjective. We can probably all appreciate that the always rational human doesn\u2019t exist.<br \/>\nBut Kant\u2019s bridge is interesting. What he says is that even though \u201cthe thing in itself\u201d is not available to us, we can still say rational things about what we see.<br \/>\nSo the mind is connected to the real in a way so we can gain and share experience. Does it sound weird? In a way it is, but Kant\u2019s arguments has generally stood the test of time and critical philosophers &#8211; and even neuroscience.<br \/>\nSo let me tie this to testing.<br \/>\n&nbsp;<\/p>\n<h2><strong>Belief as a Premise<\/strong><\/h2>\n<p>There are different ways to test: In exploratory testing, we do it interactively by operating and observing the software. In automated testing we \u201coutsource\u201d the actions to another piece of software, and our task is then reduced to making sense of data from the tests and suggest and possible implement changes to the test-software. Scripted and chartered testing sits somewhere in-between the two \u201cextremes\u201d.<br \/>\nHowever,no matter how we practice testing, we need to make sense of what is observed. And since observing is subjected to sensing, the only thing we have available is our intuitive image about the thing we are testing.<br \/>\n<a href=\"http:\/\/www.satisfice.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">James Bach<\/a> is quoted as saying \u201cBelief is a sin for testers.\u201d I like the quote as it is an important reminder to be careful what we think: It\u2019s not reality. The road might not only be wet. The software probably doesn\u2019t always do what it did this time. I probably missed something. My mind is hallucinating.<br \/>\nSo with a bit of wordplay in Kant\u2019s home language, German, I\u2019ll say that \u201cdie Sinne ist die S\u00fcnde.\u201d<br \/>\nOur senses are the sinner, but as they are also our only hope to see some tings about reality belief is not an option. It\u2019s a premise.<br \/>\nBut since we know, we can establish the transcendental: Think the real rationally by testing our beliefs.<br \/>\nIn other words: The realist approach to testing is to test the product. The transcendental approach is to test beliefs.<br \/>\n&nbsp;<\/p>\n<h2><strong>On Common Terms <\/strong><\/h2>\n<p>There is something missing in the above as so far I\u2019ve only talked about sensing, imagining, and experiencing. The brilliant part of Kant\u2019s philosophy is that he explains how we can collect experiences.<br \/>\nKant develops four categories of terms that we think by, and argues how they are given to us <em>a priori<\/em>, i.e. before we experience anything. He argues how they come from the existence of time and space. Back in his time Newton had just published his theories. Today, we\u2019ve progressed, and it probably makes better sense to think of the terms as a result of the experience of space and time.<br \/>\nBut what&#8217;s important is that although our experiences vary, we\u2019re on common terms, so to speak.<br \/>\nThis is important as it means we can think and express our knowledge about experiences generally.<br \/>\nLet me give some examples: I told you about the black ice on the road above, and while cannot be certain what I said is true, you can understand my experience. I can also share a testing problem, and we can imagine solutions together. I can try them out afterwards, and share experiences with you. We can even talk about testing in general, and imagine solutions to certain testing problems in general.<br \/>\nIn other words: The terms allow us to relate, connect, discuss, collaborate, learn, reflect, prospect etc.<br \/>\nThis makes the transcendental model of experience complete: We can sense, imagine, think, and express our thoughts into words and actions that we can share with others, who can do the same.<br \/>\n&nbsp;<\/p>\n<h2><strong>The Two Things I Want to Say<\/strong><\/h2>\n<p>So what do I want to say with all this? I want to say two things:<br \/>\nThe first is that yes, we are trapped in hallucinating minds. We might theoretically be able to escape them if we subject our testing to strict scripted procedures, make sure what we do is repetitively accurate, and only communicate what we can verifiably record and therefore objectively observe. But we\u2019ll essentially be turning ourselves into machines and miss intuitive and tacit knowledge. And one way or another, we\u2019re still stuck in a mess where at every and any judgement and decision made will be based on hallucinations.<br \/>\nBut we\u2019re not lost as we can explore the product and our intuitive ideas about it transcendentally, i.e. by realizing that both are in play when we test. Although we can\u2019t get access to the \u201cthing as it is\u201d, we can experience it. Our expeirences do not have to be transcendent, i.e. disconnected from real, but can be transcendental.<br \/>\nAnd this is the second thing I\u2019ll say: Since we are not alone in the trancendental, our roles as testers become clearer.<br \/>\nPeople are different, but I think a fundamental, perhaps even genetically coded, qualification for testers is to be sensitive people with intuitions which are easily disturbed by reality. On top of that, great testers need critical thinking skills, i.e. courage to doubt intuitive illusions, and creativity to come up with test ideas useful in the context. The rest is about interaction and communication with teams and stakeholders so that the good hallucinations about the software that we develop through our testing are shared.<br \/>\n&nbsp;<\/p>\n<h2><strong>Testing Transcendentally<\/strong><\/h2>\n<p>In the spirit of Anil Seth, the neurology professor, let\u2019s be honest: Software quality is a hallucination.<br \/>\nWe can\u2019t escape our minds and the apparent mess created by the hallucinations we think of as real. But we can experience quality transcendentally by testing.<br \/>\nTo me testing is not so much an exploration of a product.<br \/>\nI see testing first and foremost as the transcendental practice of exploring of our own, and our team colleagues&#8217; and stakeholders\u2019 hallucinations about the product.<\/p>\n<h2>References<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.ted.com\/talks\/anil_seth_how_your_brain_hallucinates_your_conscious_reality\" target=\"_blank\" rel=\"noopener noreferrer\">Anil Seth: How your brain hallucinates your conscious reality. TED2017<\/a><\/li>\n<li><a href=\"http:\/\/www.iep.utm.edu\/stoicmind\/\" target=\"_blank\" rel=\"noopener noreferrer\">Internet Encyclopedia of Philosophy: Stoic Philosophy of Mind<\/a><\/li>\n<li>Immanuel Kant: Critique of Pure Reason, 1781\/1789<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Quality is an illusion. That may seem like a bold statement, but there is a deeper truth to it that I will discuss in this blog. I&#8217;ll also discuss how we can approach the real. We can think of testers as doctors, scientists, or researchers whose job is to research, explore, or examine some software, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3091,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[8,58,66,74,88],"_links":{"self":[{"href":"http:\/\/www.asym.dk\/index.php\/wp-json\/wp\/v2\/posts\/3090"}],"collection":[{"href":"http:\/\/www.asym.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.asym.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.asym.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.asym.dk\/index.php\/wp-json\/wp\/v2\/comments?post=3090"}],"version-history":[{"count":0,"href":"http:\/\/www.asym.dk\/index.php\/wp-json\/wp\/v2\/posts\/3090\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.asym.dk\/index.php\/wp-json\/wp\/v2\/media\/3091"}],"wp:attachment":[{"href":"http:\/\/www.asym.dk\/index.php\/wp-json\/wp\/v2\/media?parent=3090"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.asym.dk\/index.php\/wp-json\/wp\/v2\/categories?post=3090"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.asym.dk\/index.php\/wp-json\/wp\/v2\/tags?post=3090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}