XP
BrainLoaf.com's take on Extreme Programming











Subscribe to "XP" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

Friday, September 26, 2003
 

Got sick of the old website look and feel. Check it out. Very minimalist.
2:02:48 PM    

Friday, December 20, 2002
 

Ballpark Estimates Considered Harmful [Source: Builder.com]

This is a great article from Builder.com on the pitfals of Ballpark estimates, and how to handle declining them in a client friendly way. The issues outlined here are frequently solved with an XP Planning session, where the client can outline all possible stories and functionality, and developers can estimate them. If a client is pushiing hard for an estimate, and the arguments in this article don't satisfy the need, chances are the estimate is a very pressing issue for the client. Use that to your advantage. Ask the client to commit an hour or two to properly planning and estimating the project. If it is that important to them, they should be willing to put in the time if you are.
2:09:22 PM    


Thursday, November 14, 2002
 

I located this article on Apple's Developer web pages. I am installing and attempting to use JBoss now. I will post results. Wish me luck!

http://developer.apple.com/internet/java/enterprisejava.html
9:45:42 AM    


Wednesday, October 23, 2002
 

I just found another fantastic XP related web site. It is all about Pair Programming and is from our friends at ObjectMentor.
2:07:35 PM    

From builder.com newsletter:

PERFORM UNIT TESTING WITH EASYMOCK

Unit testing has grown in popularity partly due to the growth of eXtreme Programming. However, writing strong unit tests can be a boring chore. Mock objects can help reduce the tedium by faking the objects surrounding the target to be tested. The mock objects are then used to check that relevant calls were made to the target.

EasyMock is a quick way to create mock objects while maintaining the power of unit testing. The typical use is to get EasyMock to:

1. Create a mock object for an interface. 2. Train that interface with the calls to expect and responses to make. 3. Test the target and verify the mock object.

Here's an example of testing that a method, Mapper.map(Processor, Integer[]), maps calls to Processor.process on each integer in an array:

public void testArrayProcessing() throws Exception { Integer[] numbers = new Integer[2] { new Integer(6), new Integer(7) };

// make a mock object MockControl control = EasyMock.controlFor (Processor.class); Processor mockProcessor = (Processor)control.getMock();

// train the object mockProcessor.process (numbers[0]); control.setReturnValue (new Integer(1)); mockProcessor.process (numbers[1]); control.setReturnValue (new Integer(1));

// turn it on control.activate ();

// run the test Mapper.map(mockProcess, numbers);

// verify the test control.verify(); }

It is important to remember to call verify on the control, or else half of the training isn't tested. For example, if we have specified that the methods must return an integer of value '1', then calling verify ensures that that was the value returned.

The order in which the methods are called in the training does not matter; however, we can specify that a method can only be called a certain number of times with:

// assume Processor interface has a setName method, and that // our class, Mapper, will call this once per item. mockProcessor.setName(test); control.setVoidCallable(3);

When we call verify, it will check how many times setName was called and report an error if it was called too often.

EasyMock's main limitation is that it only works on interfaces, but as using interfaces is a good design habit, there's not much to complain about.

EasyMock can save a lot of legwork and make unit tests a lot faster to write. EasyMock is available on the Web, along with a paper on mock objects and links to other mock object APIs. http://www.easymock.org/
2:07:02 PM    


I just found another fantastic XP related web site. It is all about Pair Programming and is from our friends at ObjectMentor.
12:38:52 PM    

Tuesday, October 22, 2002
 

Testing Webservices
10:48:38 AM    

From The Rational Edge:

Planning an Iterative Project
10:46:45 AM    



Click here to visit the Radio UserLand website. © Copyright 2007 Mike Rogers.
Last update: 4/27/07; 11:46:49 AM.
This theme is based on the SoundWaves (blue) Manila theme.
April 2007
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Sep   May