Archive for November, 2010

Magic Cast Method in Java

Since Java introduced generics the type declarations got at lot longer. This is especially annoying when an API forces you to cast objects, like the reflection-API, the JDO-API , etc. There are plenty of APIs which requires such casts. Those casts force you to write the (obvious) type twice, for the type-declaration and the cast. [...]

Read complete post

, ,

1 Comment

C# 5.0 Async-Feature: Unit Testing Part III, Avoid Void.

Disclaimer: This post is based on the C# 5.0 CTP. Everything described here is subject to future changes. Last time I demonstrated that the synchronization context is also relevant for unit testing and that you might need to setup one in your tests. This time we’re going to explore what we can do when a [...]

Read complete post

, , ,

4 Comments

The Wire Season 4-5

A while back I’ve already lost a few words about The Wire (IMDb/Wikipedia). It’s a realistic drama show about life of the police, criminals, politicians etc. Back than I had mixed  feeling about it. I loved the realistic tone but also found it some times boring . And so I lost interest after the third season. [...]

Read complete post

, , , , ,

1 Comment

C# 5.0 Async-Feature: Unit Testing Part II, Synchronization-Context Again?

Disclaimer: This post is based on the C# 5.0 CTP. Everything described here is subject to future changes. Last time we explored some implications of the C# asynchronous operations for unit tests. We noticed that we need to orchestrate tests to honor the asynchronous nature of our code. This time we take a look at [...]

Read complete post

, , ,

2 Comments

C# 5.0 Async-Feature: Unit Testing, Part I

Disclaimer: This post is based on the C# 5.0 CTP. Everything described here is subject to future changes. I’ve already discussed some implications of the async feature in my previous post.  In this post I focus on some challenges for unit test. Once again I assume that everyone is informed about the basics of the [...]

Read complete post

, , ,

No Comments