206 reputation
15
bio website
location
age
visits member for 1 year, 7 months
seen Apr 6 at 14:56

Mar
10
awarded  Yearling
Mar
10
accepted Outline for technical software documentation
Feb
23
comment Return compound structure from getter method in DTO
@Aaronaught Good point. You may write that as an answer with a little more examples. It is possible for the consumer to pick up the raw pointer from an returned Array reference anyway.
Feb
23
comment Return compound structure from getter method in DTO
@gnat This is DTO. In this case, there is no way around so I asked what sucks least.
Feb
23
asked Return compound structure from getter method in DTO
Feb
9
comment Outline for technical software documentation
@DocBrown: I thought mention "API Reference" implied the audience
Feb
9
comment Outline for technical software documentation
@DocBrown: "end users" are other developers.
Feb
9
asked Outline for technical software documentation
Jan
10
accepted Using partially implemented interfaces
Jan
10
comment Using partially implemented interfaces
@neontapir Exactly: There might be other implementations of A that do not share the implementation of doStuff.
Jan
10
revised Using partially implemented interfaces
Added some info
Jan
10
comment Using partially implemented interfaces
@JeroenVannel But does it make sense to say that B objects is substitutable for D objects? The latter avoids the more or less artificial construct D (no such thing exists in the underlaying model).
Jan
10
asked Using partially implemented interfaces
Jan
7
comment Use null object as argument to method
Also this gives a gain in performance, since, in some cases i would know that I do not have a null pointer, and then the check is unnecessary. Using a helper method, gives the programmer the choice of guarded/unguarded behaviour.
Jan
7
accepted Use null object as argument to method
Jan
7
revised Use null object as argument to method
added 45 characters in body
Jan
7
awarded  Commentator
Jan
7
comment Use null object as argument to method
@Phoshi In my situation, a missing key does not necessary imply a failure. Therefore, findObject should not throw.
Jan
7
revised Use null object as argument to method
Added a thought
Jan
7
comment Use null object as argument to method
@ratchetfreak It works in g++ (Ubuntu/Linaro 4.7.2-2ubuntu1~ubuntu12.04.1~ppa1) 4.7.2 with -O3 so gcc does not skip the if statement. It would be undefined behavior to try to access values and n_values, which it does not.