Reputation
3,182
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
13 28
Newest
 Necromancer
Impact
~364k people reached

Mar
18
comment Unit Testing in a “no setter” world
I've yet to see a unit test which could only fail for a single possible reason. Also, you can put the "state manipulation" parts of the test into a setup() method --- not the test itself.
Mar
18
comment Unit Testing in a “no setter” world
Understood. Your example did not mention many more properties, and the number in the example is "on the cusp" of having this as a valid approach. It seems that this is telling you something about your design: you can't put your object into any valid state on instantiation. That means you need to put it into a valid initial state, and them manipulate it into the right state for test. That implies Lie Ryan's answer is the way to go.
Mar
18
comment Unit Testing in a “no setter” world
No -1 from me, but including test code in production is generally a Bad Thing(TM).
Mar
18
answered Unit Testing in a “no setter” world
Mar
13
comment System requirement specification vs functional one - separate docs?
@Downvoter: Feedback to improve appreciated!
Feb
25
awarded  Constituent
Feb
19
comment Is is acceptable to create mediocre code now in preparation for new language features?
YAGNI -- You Ain't Gonna Need It.
Feb
18
awarded  Caucus
Feb
16
comment Software Engineer and IT Professionals
This guy had the title "Minister of Algorithms". No typo, either. :-)
Feb
15
revised Is HTML5 usable for syncing data between devices?
added 118 characters in body
Feb
15
answered Is HTML5 usable for syncing data between devices?
Feb
15
answered organising classes / folder structure for TDD-based development
Feb
11
comment System requirement specification vs functional one - separate docs?
@user970696: I always found the name "non-functional specification" strange: is a "non-functional specification" a broken specification? That's why I tend to avoid the term "functional spec" and go for "requirements" (if it's WHAT the system has to do) or "design" (if it's HOW the system has to do it).
Feb
11
revised System requirement specification vs functional one - separate docs?
Responding to comment.
Feb
11
answered System requirement specification vs functional one - separate docs?
Feb
10
comment Good platform to teach Programming 101?
+1 For scratch: My nephews have really taken to it.
Jan
18
comment Is it necessary to learn Makefiles when you have an IDE?
"Give a man a fish, feed him for a day. Teach an man how to fish, and he'll ask if fish roe is on the exam."
Nov
21
awarded  Nice Question
Nov
19
comment Simple C: How do I scan this information in properly?
@GregA.Woods: Sure! But you're better off avoiding them. People tend to get into the habit of using the non-reentrant ones, and then wonder why the "same" solution fails in another case where reentrancy is important.
Nov
15
comment Implementing the transport layer for a SIP UAC
TCP doesn't have to block; it can timeout and come back to the listening part.