Transilvania JUG

Sponsors

Author Archives: attila.balazs

06
Mar
2011
2

Microbenchmarking and you

Microbenchmarking is the practice of measuring the performance characteristics (like CPU, memory or I/O) of a small piece of code to determine which would be better suited for a particular scenario. If I could offer but one advice on this, … Continue reading

06
Mar
2011
0

How to test for the implementation of toString()

Problem statement: you have some value objects for which you implemented toString() (for debugging purposes) and now you would like to test using a unit test that these implementations exist. Possible solutions: – Use reflection to detect the existence of … Continue reading

05
Mar
2011
2

Checking out the samples

Before starting to post more code, I would like to to take a minute and show how the actual sample code can be accessed easily. Of course you can always browse it using a web browser, but there are better … Continue reading

22
Feb
2011
8

Reasons to call .isEmpty on collections

I’ve seen many times code like the one below: 1 if (collection.size() > 0) { … }if (collection.size() > 0) { … } There is just something which inherently “clicks” with most programmers minds when they think “non-empty”. There is … Continue reading

Page 5 of 512345
df