Reputation
4,502
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 15 26
Newest
 Guru
Impact
~205k people reached

2d
comment Should I create mock objects from scratch or modify the result of real calls in weakly typed languages?
+1 I hadn't thought of it that way - you're right, adding smoke tests for library code would be more useful than jumping through hoops when testing my own code.
2d
comment Is testable code better code?
Thanks; fixed..
2d
revised Is testable code better code?
added 48 characters in body
Jul
4
asked Should I create mock objects from scratch or modify the result of real calls in weakly typed languages?
Jul
4
revised Is testable code better code?
added 9 characters in body
Jul
4
revised Is testable code better code?
added 9 characters in body
Jul
4
answered Is testable code better code?
Jun
5
comment Clean Code comments vs class documentation
@JacquesB Why would I be? That name is the best kind of reminder that this code is temporary, and it's also an actual container for the fix rather than having to guess which lines below (or even above, after refactoring) the comment are relevant for the fix.
Jun
4
comment Clean Code comments vs class documentation
Instead of commenting that you're working around a bug, you could extract the workaround as a method such as fooBug123NotResettingWorkaround. And bam, the comment is unnecessary.
May
20
comment Where should my team start with becoming “modern”?
+1, with one nitpick: It's not just technologies which may help - techniques and methodologies (like your mention of TDD) can also be useful.
May
4
awarded  Guru
Apr
10
comment Is “Unit testing” a form of formal method?
That was an extremely bold claim, without a real reference (you need to link to or at least name the article and section), rather than "ref: Wikipedia". That's like "ref: A book". Hence my rebuttal.
Apr
10
revised Is “Unit testing” a form of formal method?
Formatting; grammar; remove unnecessary suffix; spacing; capitalization
Apr
10
comment Is “Unit testing” a form of formal method?
"Formal methods ensures us of the absence of bugs in a program" Citation needed. Seriously, that is such bull. There have been comparison studies around the cost and benefit of various formal and other methods, and none of them are a silver bullet.
Jan
23
comment Throw exception or let code fail
@Warbo: Being idempotent means that running it many times with the same parameters has the same effect as running it once. So if you call LoadMaterial("foo") and then LoadMaterial("bar") you should expect the code to use bar, not foo.
Jan
13
awarded  Yearling
Jan
13
comment What is the correct way to bind few classes with similar functionality?
@MateuszMigała If you want to do it properly, then yes. Very often the solution to badly designed code is a massive refactoring.
Dec
10
awarded  Popular Question
Dec
1
comment Tag and/or branch strategies for environments when using git
The problem with that is that as a short term strategy it tends to end up building massive amounts of technical debt, which gets harder and harder to pay off the longer you wait.
Dec
1
answered Tag and/or branch strategies for environments when using git