Skip to search.
extremeprogramming · Extreme Programming

Group Information

  • Members: 6527
  • Category: Object Oriented
  • Founded: Jan 1, 2000
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
Question about a habit/practice   Message List  
Reply Message #156986 of 157781 |
Re: [XP] Question about a habit/practice

Hi George,

On 12 Feb 2012, at 23:30, George Paci wrote:
[snip]
>> Currently I more often reach to my source control system and checkout a fresh
version of trunk, fix the related code, then return to my original code and
merge the changes in.
>
> I think I know what you're saying here, but just to be sure:
[expansion snipped]

Yup - that's it :)

[snip]
> It seems like one salient advantage of using version control
> like this is that work on Module B can happen without being
> complicated by the changes made to Module A (if you go all
> the way back to T0). But how often does such complication
> really happen?

For me it's not so much that the changes to A complicate B, but that the changes
to B can affect the direction taken with A.

Especially in the early stages I'm discovering the design with TDD. The changes
to B might lead me to other changes in C and so on. By the time I come up from
that rabbit hole the direction originally taken with A may turn out to be wrong.

> I use stash in git all the time, but I never thought about
> using it for this kind of case. Typically, to mark a test
> Pending, I prefix the name with "XXXXXXXXXXXXX", which (a)
> is not picked up as a test by the framework and (b) is
> pretty hard to miss in the diff I look over before I commit.

I use TODO tests in my framework (TAP based) which means that they show up as
passing/failing, but a "fail" doesn't cause an overall failure in the test
suite, and a "pass" gives an "unexpected success" message.

> I never thought about having many Pending tests; it seems
> like it would be difficult to build up a pile of them
> without doing something else very wrong. Or, you know,
> having a development situation that hasn't occurred in my
> limited experiences.

I think "doing something else very wrong" is a good way of describing what
happened with me on occasions where multiple pending tests build up :-) Using
the stash gives me a bit of discipline to stop making the same mistakes again.

> But maybe Sorites was onto something with his paradox[1]:
> maybe even one Pending test is a pile, and should be
> avoided: like a comment, it can quickly become out-of-date.

That's pretty much my opinion. About the only time I use pending tests now are
for things that I can't fix immediately (problems caused by third party code for
example).

Cheers,

Adrian
--
http://quietstars.com adrianh@... twitter.com/adrianh
t. +44 (0)7752 419080 skype adrianjohnhoward del.icio.us/adrianh






Tue Feb 14, 2012 5:06 am

ajh65537
Offline Offline
Send Email Send Email

Message #156986 of 157781 |
Expand Messages Author Sort by Date

I have a habit (Might even rise to the status of a practice. At the very least, it's a pattern, or perhaps anti-pattern) that I'd like to hear thoughts on. ...
John Maxwell
jmax315 Offline Send Email
Feb 10, 2012
1:50 am

Hi John, ... Sure, why not. Or, I might just make the existing test work, which will require the change in question. Then I decide whether a closer-in test is...
RonJeffries
RonaldEJeffries Offline Send Email
Feb 10, 2012
1:55 am

... Well, I don't see why not either, but since I'd never seen such a thing mentioned in any prior descripton of the TDD workflow, I thought it was worth at...
John Maxwell
jmax315 Offline Send Email
Feb 10, 2012
2:17 am

Hi John, ... Sure. Actually I think most of the TDD books talk about marking a test ignored, working on something else, then unignoring ... Ron Jeffries ...
RonJeffries
RonaldEJeffries Offline Send Email
Feb 10, 2012
2:25 am

John, ... Yes, I've noticed that on occasion. Sometimes it drives me slightly nuts, as it can lead to a rather long deviation from the current goal. ... I...
George Dinwiddie
gdinwiddie Offline Send Email
Feb 10, 2012
4:40 am

... I work in the same way some times. Some times also I find that a previously tested piece of software has inside a common part of software I am writing so I...
M. Manca
micronpn Offline Send Email
Feb 10, 2012
8:10 am

On 10 Feb 2012, at 01:51, John Maxwell wrote: [snip] ... [snip] I have done this and don't see there being any problem with it (assuming that the pending test...
Adrian Howard
ajh65537 Offline Send Email
Feb 10, 2012
2:47 pm

... I think I know what you're saying here, but just to be sure: Trunk is at state T0; call the module you're working in Module A. You add a test, add some...
George Paci
georgepaci Offline Send Email
Feb 12, 2012
11:30 pm

Hi George, On 12 Feb 2012, at 23:30, George Paci wrote: [snip] ... [expansion snipped] Yup - that's it :) [snip] ... For me it's not so much that the changes...
Adrian Howard
ajh65537 Offline Send Email
Feb 14, 2012
5:06 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help