This came up at the XPImmersionTwo course today. It is also something similar to what I have been doing with testing servlets. The servlet problem: The...
2622
Tim Mackinnon
timm@...
Mar 1, 2000 8:47 am
... Yes - write your code so that you can "Mock Up" the distributed bits locally. As pointed out - distributed stuff is very finicky, so make sure you unit...
2623
Duncan Gibson
duncan@...
Mar 1, 2000 9:39 am
I have a poster above my desk which reads: "The man who makes no mistakes does not usually make anything." Once I adopted that as a philosophy, I found life...
2624
Hans Wegener
hans.wegener@...
Mar 1, 2000 9:42 am
... To extend the point - it's all about testing framework extensions. The only workable solution I have come across is separate "application functionality"...
2625
Jim McFarland
j.mcfarland@...
Mar 1, 2000 1:51 pm
... I agree with Phlip in that I am not sure that "the requirements keep shifting" is always an "excuse". Sometimes it is a fact that you cannot control....
2626
Phlip
phlip@...
Mar 1, 2000 2:18 pm
From: Jim McFarland ... I believe I wrecked Steve's example, in which the requirements did _not_ shift a lot, but the programmer blamed them anyway. So let's...
2627
Ron Jeffries
RonJeffries@...
Mar 1, 2000 3:05 pm
... Change of requirements is a fact that, in XP, the customer controls. By knowing the cost of any card, the customer chooses cards that lead to a successful...
2628
Kent Beck
kentbeck@...
Mar 1, 2000 3:20 pm
I kind of hate to bring this up, but my first strategy for testing something as complicated as EJB is to use simpler technology. If you can solve your problem...
2629
Steve Metsker
steve.metsker@...
Mar 1, 2000 4:23 pm
... One thing that might shed light on nx programming is the concept of museum grade code. Sometimes I write code with the aspiration that someday, a yellow...
2630
Thomas Matelich
tmatelich@...
Mar 1, 2000 4:41 pm
I decided I should clear this up in case my co-workers start reading this list (hi!). The position of power statement was a joke, I don't hold myself above the...
2631
Dave Thomas
Dave@...
Mar 1, 2000 4:45 pm
... I'm interested in exploring this, because others have also mentioned the idea of aiming for 'the best code possible' or somesuch. What are the criteria for...
2632
Donald McLean
dmclean@...
Mar 1, 2000 4:55 pm
... In XP, once you've completed the code and are sure that it works, you have to refactor mercilessly. You're not done until the code is the simplest,...
2633
Ron Jeffries
RonJeffries@...
Mar 1, 2000 4:58 pm
... Just heading off to class. So a hint: think about the values of communication and simplicity. Discuss this among yourselves, I'll chech your work later ......
2634
Thomas Matelich
tmatelich@...
Mar 1, 2000 5:13 pm
... I can't answer all of these questions yet, but I'll try on a few. I think the one that is the hardest to deal with is CodeTestsFirst. It took me a long...
2635
Chris Berry
cberry@...
Mar 1, 2000 5:13 pm
Dave, While I agree w/ you in practice (e.g Do the Simplest thing possible -- Use the appropriate tools for any given job) it's all obviously quite subjective....
2636
Joshua Kerievsky
joshua@...
Mar 1, 2000 5:16 pm
... I would say that your design strategy is to choose simple technology first. I view that as core to XP. It is certainly core to how I design software, and...
2637
Ron Lusk
ronlusk@...
Mar 1, 2000 5:34 pm
... Perfection is finally attained not when there is no longer anything to add but when there is no longer anything to take away, when a body has been stripped...
2638
Dave Thomas
Dave@...
Mar 1, 2000 5:51 pm
... All true. But that point can occur well before a piece of code is 'museum quality'. My question was whether there's any time in XP to take code to this...
2639
Dave Thomas
Dave@...
Mar 1, 2000 6:04 pm
... pg. 202 ;-)...
2640
Donald McLean
dmclean@...
Mar 1, 2000 6:06 pm
... Yes, basically we're quibling over semantics and such. The standard for XP is "refactor mercilessly". I'm not sure what difference there is between...
2641
Michael T. Nygard
michaeln@...
Mar 1, 2000 6:26 pm
I've written a test runner that is a servlet. It can invoke EJBs "in-place" on the server. Coupled with a quick deployment and a local server, unit testing...
2642
Gareth Reeves
reevesy@...
Mar 1, 2000 7:00 pm
I agree with you both on choosing simple technologies and simple solutions. EJB could be considered a simple technology becuase it saves us having to write a...
2643
Eric Rizzo
eric.rizzo@...
Mar 1, 2000 7:05 pm
... Yes, please do! -- Eric Nicholas Rizzo eric.rizzo@... The Technical Resource Connection, Inc. Perot Systems ... I embrace my personality...
2644
Michael T. Nygard
michaeln@...
Mar 1, 2000 7:14 pm
Here's the code for the servlet itself. I have additional resources for deploying this as a web component in the Sun J2EE reference implementation, which are...
2645
Gareth Reeves
reevesy@...
Mar 1, 2000 8:12 pm
Is this really Unit testing or is it Functional testing? ... From: Michael T. Nygard [mailto:michaeln@...] Sent: Wednesday, March 01, 2000 12:21 PM...
2646
Tim Mackinnon
timm@...
Mar 1, 2000 8:53 pm
... You may want to consider these adds - they seem quite XP unfriendly!...
2647
Jim McFarland
j.mcfarland@...
Mar 1, 2000 9:20 pm
... have ... "XP unfriendly"? What do you mean? He mentioned openings on his team at the end of a regular message. What is your objection?...
2648
Joshua Macy/Towers Pe...
Macyj@...
Mar 1, 2000 9:31 pm
"Jim McFarland" wrote: ... I think he means the job postings themselves. If you follow the link to the Zetec site, it doesn't appear at first glance that the...
2649
Tim Mackinnon
timm@...
Mar 1, 2000 9:59 pm
... out I would suggest that Mocking up objects that conform to the required interface isn't as much work as you think. When we were testing Servlets, my ...
2650
Dave Thomas
Dave@...
Mar 1, 2000 10:13 pm
... Then compare and contrast with the cost curve and the stated way of knowing when you're done. Dave...