Archives
Mobile Computing Finally Arrives At Casa Gorman
Submitted by jason@parlezuml.com (Jason Gorman) on Wed, 04/06/2008 - 13:31.Gadgets are usually a bit of a let-down, don't you find? The marketing hype makes it sound like the cure for all ills, but when you get it out of the box, it turns out to be just another flakey pile of over-promising, under-achieving plastic crap.
Dynamic Languages, Substitutability & Unreused Abstractions
Submitted by jason@parlezuml.com (Jason Gorman) on Wed, 04/06/2008 - 13:58.I've talked before - in typically ill-considered and handwavy terms - about the need to unify principles of software and system design across the various levels of organisational granularity:
* Code statements in methods
* Methods in classes
* Classes in packages
* Packages in applications
Test For Failure, Not Success
Submitted by SteveRowe on Wed, 04/06/2008 - 15:55.We recently went through a round of test spec reviews on my team. Having read a good number of test specs in a short period of time, I came to a realization. It is imperative to know the failure condition in order to write a good test case. This is at least as important if not more important than understanding what success looks like.
Too often I saw a test case described by calling out what it would do, but not listing or even implying what the failure would look like. If a case cannot fail, passing has no meaning. I might see a case such as (simplified): "call API to sort 1000 pictures by date." Great. How is the test going to determine whether the sort took place correctly?
Java - Run a System Command and Return Output
Submitted by noreply@blogger.com (Corey Goldberg) on Wed, 04/06/2008 - 16:14.import java.io.*;
public static String cmdExec(String cmdLine) {
String line;
String output = "";
try {
Process p = Runtime.getRuntime().exec(cmdLine);
BufferedReader input = new BufferedReader
(new InputStreamReader(p.getInputStream()));Pex on the .Net ResourceReader
Submitted by Jonathan de Halleux on Thu, 05/06/2008 - 03:17.Ever wonder what was happening inside the ResourceReader (where do those resources come from anyway!).... Check out Nikolai's post on using Pex to test this (complicated) class...
