All, I am working on JUnitMax, a project to maximize the utility of tests. The first release will help programmers stay focused by reducing the time required...
Kent some questions that are likely to come up as I share this with people inside our organisation: 1) What is JUnitMax? I can't find anything on the web. 2)...
Hi everybody! I came across an interesting discussion on the [XP]-list yesterday, thought I'd restate my question/thoughts here! Do you know of free and...
Olof Bjarnason
olof.bjarnason@...
Dec 2, 2008 8:15 pm
29480
Ndepend is your solution Casey Charlton http://devlicio.us/blogs/casey On 2 Dec 2008, at 20:15, "Olof Bjarnason" <olof.bjarnason@...> ... [Non-text...
Laurant once suggested that he just sorts the files in a project by size :-) I seem to that one of the refactoring plug-ins had a measurement tool (CodeRush or...
... Yes, but there's a little more to it than that. See http://www.bossavit.com/pivot/pivot/entry.php?id=289 Laurent's excellent heuristics. - George -- ... *...
Hello Nat, ... I know this is not the point of the thread, nor your email. But can you explain the above statement? One of the goals of OO is to help...
I have this legacy megafunction, written in C. (I'm embarrassed to admit I wrote it many years ago.) The operation of this function is to read a file, and...
Hi, Alan, ... 1) find a way to serialize your data structure, if not already extant; 2) write some example (non-unit) tests that give you fair coverage; 3)...
... Measuring CC will tell you how complex a method is. If you have complex methods in OO code, that is a very bad thing. However, this is just scratching the...
Cyclometric complexity defines how complex a single method is by measuring how many paths there are through the procedural control flow statements in that...
I would try to start with two tests - one "happy path" test, and a test that sets up the conditions to provoke the bug. One test should pass, and the other...
... You can't work with a megafunction reliably. That is the nature of megafunctions. They're subsystems or maybe systems unto themselves. Get a good partner,...
... I recently did much the same thing to a similar sounding piece of code that *I* originally wrote. What I did was first go through and extract out any piece...
Brad Stiles
bradley.stiles@...
Dec 4, 2008 4:18 pm
29494
As much as I believe what I said, what Keith says here is also correct and may be the more pragmatic view. Look at M.Feathers' book and you'll see that there...
I forgot to say thanks for all the feedback. Its been useful to a colleague who is talking to her uber manager about the short term effects that adopting TDD...
Thanks Tim and everyone for your suggestions. Unfortunately right now I'm overwhelmed by this feeling that writing tests will take "forever" when I could just...
... That's okay. THe quote is "Don't despair, but if you do despair work on in despair." Try to split out the minimal bits and test them. It may be that the ...
Hi, Alan, ... and ... Obviously, I can't know the right answer for your specific issue, and I don't mean to contradict you. I'm just trying to offer what I...
I currently believe 1) Fixing the bug requires dramatic changes to the function. 2) Careful changes might not break anything but it's hard to tell because...
Hi, Alan, ... For my part, I can't get anything "dramatic" done in an hour or two. And I'd worry a lot about ... A "dramatic" change that I "just snipped,...
I've been in the situation where writing a test seemed to take way too long. And I've also been in the situation where snip/tuck/rearrange etc. SEEMS like it...
Alan; First I recommend Michael Feathers "Working Effectively with Legacy Code". It is the bible when it comes to fixing bugs in large functions. I can...
Olof Bjarnason
olof.bjarnason@...
Dec 5, 2008 7:27 am
29504
Alan, FWIW, I want to chime in with the idea of writing several characterization tests, preferably based on several real-world input data sets which both do ...
There's a recent article from MS research which claims that "the pre- release defect density of the four products decreased between 40% and 90% relative to...
Alrighty then. I have seen Michael's book recommended soo many times now, I given in. I'll order it. As for the function in question, I caved. I did a bit...