perlmeditation
BrowserUk
<blockquote><i></i></blockquote>
<p>This isn't much of a meditation. More a reference to a couple of pieces of further reading on recent topics prompted by an enquiry.
<h4>Testing methodology</h4>
<p>Anyone who's been around here for a while (and still bothers to read my posts), will know I have a distaste for [cpan://Test::*] suite of modules. I'm not opposed to testing. Indeed I spent a good part of my career doing pretty much nothing else and am 100% convinced of the need for and value of testing as an integral part of the software development process.
<p>My argument is not about whether you test. It's about what you test. When. And how.
<p>Being a vocal member of a usually silent majority(?), speaking out against practices advocated by the more vocal advocating minority, causes consternation: Why does he think he knows better than all those others?
<p>The answer of course is, I don't. But that doesn't mean I'm wrong either. There is no one right way to do most anything. Some ways work better than others in certain environments; for particular teams or individuals; for particular project types or goals.
<P>Just as getting from A to B may be better accomplished using a car, minivan, pick-up truck, bus, 18-wheeler, train or bike, depending upon the requirements of the journey involved. So RAD, Agile, XP, or waterfall development models will each suite some projects/teams/environments better than others.
<P>If you are a someone who's programming skills are evolving through doing, you start out writing small scripts and debugging by trial and error. As your skills improve and your programs get more complex, you reach a point where you look for a better way. If there are a set of tools and frequent references to those tools and the underlying methodology they implement, you will take a look and give them a go. And if those tools and methodology are an improvement over your previous (non-)practices, you are likely to adopt them and become both practitioner and advocate.
<p>Anything is better than nothing. And if you've only tried one thing, then that thing is going to be the anything that you use. But if you have experienced more than one methodology, whilst you may have an opinion as to which you prefer, it would be a rash man who elected to ignore the alternatives for every project he becomes involved in. Rasher still to recommend it, to the exclusion of all others, for projects that he has only the barest of knowledge of.
<p>There is an old saying:
<blockquote><i>Good judgement comes from experience, and experience comes from bad judgement.</i></blockquote>
<p>And I know of no field where that is more applicable than software development.
<h4>Best practices</h4>
<p>I've also been known to express concerns that a certain set of "Best Practices" has had a detrimental affect upon the way the use of Perl's full syntactic power is perceived. These concerns relate not to the detailing of the best practices themselves, but to their codification as a set of rules enforceable through automation without a full understanding of their implications.
<P>Try as I might, I can come up with no shorter explanation than the following. Drawn from a paper [http://www.stickyminds.com/stickyfile.asp?i=2463348&j=44264&ext=.pdf|Why Software Quality Assurance Practices Become Evil! (pdf)]
<P>(<b>UPDATE: The preceding link doesn't work without registration. However, going to [http://www.stickyminds.com/sitewide.asp?Function=edetail&ObjectType=ART&ObjectId=8375|here] and clicking the link labelled "View Content Detail:" does)</b>)
<P>that I highly commend to all those that see no merit in my apparently contrarian opinions. And those who believe that they are currently using the One True Way of software development and testing. It is only 11 pages, and just might give a few of you pause for thought.
<blockquote><i>
<P>So let me rephrase the title of this paper into a more verbose title: Why requirements
management, software design, coding standards, inspections, unit test, integration test, system
test, and management reviews become a source of discomfort and repulsion and are offensive. So
why is this? Let&#8217;s start out by differentiating practices from principles.
<p>Webster&#8217;s defines the noun practice to mean &#8220;actual performance or application&#8221; and uses as an
example &#8220;ready to carry out practices that they advocated in principle.&#8221;
<p>Webster&#8217;s defines the noun principle to mean &#8220;a comprehensive law, doctrine, or assumption.&#8221;
<p>So practicing principles would mean &#8220;actual performance or application of a comprehensive law,
doctrine, or assumption.&#8221;
<p>My actual experience has led me to observe that it is a big mistake for the software industry to
focus on the portability of practices from one software project to another. Practices, by their very
definition, are specific to their application. We hear things like &#8220;best practices,&#8221; &#8220;standard
practices,&#8221; &#8220;recommended practices,&#8221; &#8220;common practices,&#8221; and (my favorite) &#8220;best commercial
practices&#8221; as if there is a finite set of them, and they work for all situations. Practices are the
actions taken to accomplish something.
<p>What if we focused on best principles instead of best
practices? A principle is not application specific, therefore it is portable. A single principle can
be instantiated into many different practices, each appropriate for specific situations. Principles
could be instantiated into appropriate practices based on Risk, for instance.
</i></blockquote>
<h4>The pig in a hut</h4>
<p>For an explanation of that, you'll have to read the paper above :)
<div class="pmsig"><div class="pmsig-171588">
<hr />
<font size=1 >
<div>Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.</div>
<div>"Science is about questioning the status quo. Questioning authority". </div>
<div>In the absence of evidence, opinion is indistinguishable from prejudice.</div>
<div>[http://news.bbc.co.uk/1/hi/education/6202877.stm|"Too many &#91;&#93; have been sedated by an oppressive environment of political correctness and risk aversion."]</div>
</font>
</div></div>