1,553 reputation
512
bio website dci-palestine.org
location Lower Hutt, New Zealand
age
visits member for 3 years
seen Nov 29 at 4:55

I am a freelance software designer and developer with approximately 20 years of commercial IT experience. The main focus of my work recently has been Java development. I have an especial interest in automated software testing techniques.

My qualifications include

  • a BSc.Hons in mathematics from Victoria University in Wellington, New Zealand;
  • an Introductory Certificate in the Teaching of Adults, from Wellington Polytechnic (which no longer exists).

I have lived my entire life in New Zealand. I currently live in Lower Hutt, near Wellington.


Nov
2
comment Should a getter throw an exception if its object has invalid state?
@DeadMG Yes, but we don't know what OTHER uses there are of getCompleteName() in the rest of the class, or even in other parts of the program. In some cases, returning null may be exactly what is required. But while there is ONE method whose spec is "throw an exception in this case", that's EXACTLY what we should code.
Nov
2
comment Should a getter throw an exception if its object has invalid state?
No, @DeadMG, you only have to check it in cases where an exception should be thrown if getCompleteName returns null. Which is the way it should be. This solution is correct.
Oct
3
comment Should test data be checked into version control?
... production, and to situations where the developer knows that a bug exists, but can't "find it again". If your experience differs, then count yourself lucky. My advice to anyone reading this is to avoid this kind of test like the plague, because it WILL bite you. @congusbongus
Oct
3
comment Should test data be checked into version control?
Well, your experience may differ. But I've lost count of how many times I've seen bugs sneak through testing because a developer has just used a "random" approach to test data, instead of stopping to think about which test cases are actually needed. Moreover, in such cases, if on one lucky test run, the random data does happen to highlight a bug, it can be well-nigh impossible to identify and fix the bug, because you can't reproduce the data that found the bug; which makes the whole test a waste of time. So, in MY experience, tests that generate random data lead both to bugs in ...
Oct
3
comment Should test data be checked into version control?
If your system is recording input data, and your test is recycling that data, then it's not random. Random means unpredictable, therefore unreproducible. You can't change the meaning of an English word by using a new testing technique. @congusbongus
Oct
3
comment Should test data be checked into version control?
Actually, @congusbongus, "unreproducible" is EXACTLY what random means.
Oct
2
comment Should test data be checked into version control?
OK, my point is - random test data leads to a world of hurt. Never do it.
Oct
2
comment Should test data be checked into version control?
If you're generating test data randomly, then you should really go out and buy a book about writing reproducible automated tests.
Sep
24
awarded  Autobiographer
Jun
3
comment Is it good to review programs with seniors and boss even if it is working fine?
@JanHudec OK, agreed.
Jun
3
comment Is it good to review programs with seniors and boss even if it is working fine?
@JanHudec - Not at all. Reviews of the tests are just as important, if not MORE important, than reviews of the application code itself. One of the main benefits of reviews is that they pick up what the tests have missed. So review before testing is definitely too early, unless there's going to be more review later.
May
20
comment I am making 4-5x more story points than average, but producing bugs at half the rate. Graphs say it's 2x more bugs, how to deal with that?
I would rather hire someone who does what his boss asks him to do, instead of complaining about it on the Internet. Sometimes, the boss knows best.
May
19
comment I am making 4-5x more story points than average, but producing bugs at half the rate. Graphs say it's 2x more bugs, how to deal with that?
No. It's not about a manager looking at raw number of bugs, or any other metric. It's about a manager who wants his employee to perform better, and an employee who thinks he/she is justified in not complying.
May
16
comment I am making 4-5x more story points than average, but producing bugs at half the rate. Graphs say it's 2x more bugs, how to deal with that?
Every release cycle, you are producing twice as many bugs as your peers. Bugs are expensive to find and expensive to fix. So your boss has to budget the resources to get your bugs dealt with; and it's twice as much for your bugs as it is for the next guy's bugs. Therefore, your boss wants you to produce fewer bugs, regardless of what the rest of your team are doing. Maybe he knows that you have more experience than the rest of the team, and therefore should be able to produce fewer bugs. In any case, I don't see why you'd complain about having a boss who wants you to produce fewer bugs.
May
16
comment I am making 4-5x more story points than average, but producing bugs at half the rate. Graphs say it's 2x more bugs, how to deal with that?
Yes, but your boss is saying that your work is NOT "good enough". In other words, you should do better. You haven't given one good reason why you can't do better. This whole discussion sounds to me like somebody trying to make excuses for producing bug-ridden code. "I'm in a team of very slow developers, and therefore I have to make twice as many mistakes as everyone else". Please!
May
16
comment I am making 4-5x more story points than average, but producing bugs at half the rate. Graphs say it's 2x more bugs, how to deal with that?
I only said you should aim at zero bugs, not that you must achieve it. Think of archery. I am no good at archery - I have never hit the "10" in the centre of the target. Should I aim at the "7" ring, because "10" would be too difficult?
May
15
comment I am making 4-5x more story points than average, but producing bugs at half the rate. Graphs say it's 2x more bugs, how to deal with that?
Lots of people have written books on how to write better code.
May
15
comment I am making 4-5x more story points than average, but producing bugs at half the rate. Graphs say it's 2x more bugs, how to deal with that?
In my experience, comments frequently contain bugs.
May
15
comment I am making 4-5x more story points than average, but producing bugs at half the rate. Graphs say it's 2x more bugs, how to deal with that?
That is not an excuse for not reducing your error rate. If your boss wants you to produce better code, then it's time to produce better code, not to make excuses about it.
May
15
answered I am making 4-5x more story points than average, but producing bugs at half the rate. Graphs say it's 2x more bugs, how to deal with that?