Just received my Magic Trackpad from Apple today. Very impressed after a bit of use with it. Love all the different gestures that you can map to. After using this, a mouse is going to seem awfully archaic.
Tuesday, August 31, 2010
Monday, May 17, 2010
Brief history of mock objects
http://www.mockobjects.com/2009/09/brief-history-of-mock-objects.html
Monday, May 10, 2010
Steve Freeman on sustainable TDD
Excellent presentation by Steve Freeman on sustainable TDD. Lots of great tips for making your unit tests easier to comprehend and maintain.
http://www.infoq.com/presentations/Sustainable-Test-Driven-Development
Sunday, May 09, 2010
Practical styles of pair programming
Excellent blog on pair programming.
http://blog.xebia.com/2010/05/09/practical-styles-of-pair-programming/
A quote from the blog entry:
"No you're not faster on your own, you're just creating more crap for your colleagues to puzzle over and eventually delete. The code you write alone sucks. That guy that is getting on your nerves is trying to tell you (clumsily) that your code sucks, try to listen to him and you'll turn into a better programmer."
Have you encountered one or more of these styles? How many developers are pair programming these days?
Monday, May 03, 2010
Tool coming to Xcel Energy Center
Tool concert on July 1, 2010
Tickets go on sale this Saturday.
Thursday, April 29, 2010
Uninstalling Mac developer tools
sudo /Developer/Library/uninstall-devtools --mode=all
Found this advice here.
Monday, April 26, 2010
Mac OS X key bindings
http://www.erasetotheleft.com/post/mac-os-x-key-bindings/
Unfortunately, this doesn't seem to work with Xcode. My original investigation started here.
Sunday, April 18, 2010
Test-Driven in Groovy presentation in the bag
Thursday, April 08, 2010
iPhone presentation
http://groups.google.com/group/jamsessions/web/10-04-07-iphone-os-the-next-killer-platform
A huge thanks goes out to my co-presenter, Bob McCune. The SenateJam demo was a big hit.
Sunday, April 04, 2010
Preparing for DevJam Jam Session iPhone presentation
Wow! Talk about growth. Looking forward to the presentation.
Saturday, April 03, 2010
First impressions of the new iPad
The processor in this device is very fast; the device is very snappy with animations, games, and video. I can see game makers really going after this thing. EA seems to have a couple of games out for the iPad (I tried Scrabble and Need for Speed). Game control was very good for Need for Speed.
Transferring .epub files to your iPad
Tuesday, March 23, 2010
Nice Mercurial tutorial by Joel Spolsky
Friday, March 19, 2010
Mockito's @InjectMocks annotation does reflection-based DI
Tuesday, March 16, 2010
Cool features in Cucumber, part 1
Saturday, March 13, 2010
PeepCode screencast: Use the Cucumber
CoverScout for retrieving iTunes album art
Monday, March 08, 2010
New annotations in mockito 1.8.3
@Captor
This annotation will automatically create typed argument captors (
org.mockito.ArgumentCaptor<T>
) in your unit tests. Argument captors are essential in verifying indirect outputs to your mocked collaborators.
public class Test{
@Captor ArgumentCaptor<Foobar> foobarCaptor;
@Before
public void init(){
MockitoAnnotations.init(this);
}
@Test
public void shouldDoSomethingUseful() {
//...
verify(mock.doStuff(foorbarCaptor.capture()));
Foobar capturedFoobar = foobarCaptor.getValue();
assertEquals("foobar", capturedFoobar.getName());
}
}
@InjectMocks
Automatically injects mocks by type using setter injection. Constructor injection is not currently available, but if you want to provide a patch, the mockito team will gladly consider your contribution. I'm actually more interested in reflection-based injection, similar to what Spring uses when annotating dependency fields using @Autowired. Having your unit tests inject dependencies via reflection would help me avoid the set* methods on the implementations. I may have to play with this a bit.
public class FooBarManagerTests {
@Mock private FooDependency mockFoo;
@Mock private BarDependency mockBar;
@InjectMocks private FooBarManager manager = new FooBarManagerImpl();
@Before
public void initMocks() {
// Initializes all mocks and then injects those mocks into the FooManager instance.
MockitoAnnotations.initMocks(this);
}
@Test
public void shouldDoSomething() {
manager.doSomething();
verify(mockFoo).doSomethingToFoo(any(String.class));
verify(mockBar).doSomethingToBar(any(Integer.class));
}
}
Saturday, February 27, 2010
Gerard Meszaros "From Concept to Product Backlog" talk
Friday, February 26, 2010
Adopting Agility with XP, Scrum and Lean Thinking - Powered by RegOnline
Adopting Agility with XP, Scrum and Lean Thinking