... I'd like to think a bit about what Ron said, and why it might be true that working TDD on paper is different than working TDD with a real computer, real...
... Yes. My basic practice is only to refactor when the code tells me to refactor, not when I think I know what it's about to tell me. I do break that rule...
... book, ... Speculative refactoring has come up before (I think we should call it Dark Room Refactoring after Kent's imagery above), and I remember thinking...
This is what I do (I think). From the perspective of thinking about a new test case, I'm (finally) prepared to listen to something it's been telling me all...
... If the code really already wants Extract Class, it's not speculative and you don't have to wash your hands. Imagine if I was pairing with you one day, we...
... No need to feel guilty about that. The code was asking for it. What I'd consider hand-washing material would be a refactoring where after you did it, if...
First of all, thanks alot to Kent for writing such a book. I only leafed it through, tried some TDD and I'm already amazed by the code I wrote. Moreover, this...
First of all, thanks alot to Kent for writing such a book. I only leafed it through, tried some TDD and I'm already amazed by the code I wrote. Moreover, this...
... Maybe we're talking about a different "this" (went from test cases, plural, to psuedocode, to code which could then have test cases run against it). I...
... Even when I identified the best "next" case, it was a huge leap. When I was done, by hook (test cases) or by crook (pseudocoded), the inner loop logic for...
For those who came in late: The program being developed (with TDD) takes several rows (each with zero or more columns) as input, and generates several 5-tuples...
... I'm confused. A recent note of yours made me think you were /not/ doing these with TDD, that you were instead writing out lots of tests and doing paper...
... I did the first 7 tests with TDD: test/Red/Green. (Here, "test" means "introduct a new test case.") Tests 8, 9, and 10 introduced combining identical rows...
... What am I missing? It seems you wrote that you were doing this all on paper. Did you start doing it on computer instead, or were you not doing it on paper?...
I haven't tried to implement RLE using test-first. I was given code for RLE8 and wrote a few tests to validate that it works. The code I was given was pretty...
I've been working with TDD for a few months now, and in general I like what I see. I've run into a few difficulties relating to my work environment, though,...
... Does CVS have a branching facility? In Perforce, we "integrate" the file to a
new place, which creates a copy, and then remove the old one. The history...
As an alternative to your suggestion to work through the tests in the order you did, let me suggest that folks try working through the tests in different...
I have been doing TDD for about a year and a half now at work and I have seen great improvements in my abilities to code. But recently I undertook a project...
What if you had a little object representing an attribute in the file? Each Attribute would have a file offset and methods to read and write. There would be...
... You're lucky this isn't a multi-player game. Most of those have been forced to do trivial encryption of the player file in order to keep people from...
... Why not try just that, and look for a different solution only when you find it to be a problem? I agree it _feels_ wrong, but we do that and haven't...
... Yep. * If you have admin access to the repository, you /can/ rename files and keep version history; Google for Karl Fogel's CVS book and go to the ...
... ... so, having gotten through the first seven tests with TDD, but unable to use TDD for the next two or three test, I started doing designs on paper....
... A couple of suggestions: o I think it's good to distinguish "checkpointing" (where you keep track of the history of your personal changes, for your own ...
Between the several examples I've read, and my own personal experience, it seems TDD goes better with a functional programming approach than with an imperative...
... Separate command and query. Mock objects. The former pattern predates TDD, of course... ... A lot compared to what ? Calling linecount() on that File is...