BlueRaja - Danny Pflughoeft

less info
2,931 reputation
1322
bio website blueraja.com/blog
location
age
visits member for 3 years, 2 months
seen Mar 30 at 11:11

May
10
comment What is meant by “native support for a feature” in a programming language?
Or you could say it's natively supported but not common/not the default. It's just semantics.
May
3
comment When is unit testing inappropriate or unnecessary?
"The code needs to interact with other deployed systems; then an integration test is called for." - that's what mock objects are for
Apr
23
awarded  Nice Answer
Apr
12
comment I just started a job with Scrum and something seems to be missing. I am new to Scrum
@Erik: No, it does not. Almost always it is an entirely new set of devs demanding a total rewrite, and almost always that is a bad idea.
Mar
31
awarded  Nice Answer
Mar
30
comment Are nullable types preferable to magic numbers?
"JavaScript, for example, has an infinity. C# doesn't." - huh?
Mar
30
comment If you had two projects with the same specification and only one was developed using TDD how could you tell?
@Andrew: Because of the fastest gun in the west problem, answers are often not ordered by which ones the community deems best, but simply by which answers that were answered in the first hour that the community deems best. It is usually very difficult for an answer written a day late to get so many upvotes, if any at all :)
Mar
29
answered How to deal with tautology in comments?
Mar
28
comment If you had two projects with the same specification and only one was developed using TDD how could you tell?
@Jarrod: I think you misread. I never said large programs need TDD - I said large programs that use TDD need the sacrifices I listed (workarounds to deficiencies in languages that were not designed with TDD in mind) to have meaningful unit-tests. And I agree that integration tests are useful, but these are a completely separate thing from unit-tests and TDD, which are also useful, for different reasons. I think you are confusing "has tests" with "developed using TDD."
Mar
28
comment If you had two projects with the same specification and only one was developed using TDD how could you tell?
@Jarrod: Have you ever actually written a large program using TDD, aiming for near-100% code coverage? These are the sacrifices TDD-developers make to make full coverage possible without making tests meaningless or unwieldy. It is easy to write dependency-free tests for a small, computational framework like BigInteger without doing the above, but in larger, real-world programs, this is not possible. I would argue - and I think most TDD-developers would agree - that if you are not using mock objects to isolate your classes in tests, then you are not doing TDD.
Mar
28
awarded  Good Answer
Mar
25
awarded  Nice Answer
Mar
23
comment Why is verbosity bad for a programming language?
I read both pieces of code exactly the same in my head.
Mar
22
comment If you had two projects with the same specification and only one was developed using TDD how could you tell?
@AllonGuralnek: As I said to you in the other post, I have, but it is far from free, making it not an option for most people.
Mar
22
comment Why was Tanenbaum wrong in the Tanenbaum-Torvalds debates?
Regarding point 2: I've been saying for years that once .Net becomes ubiquitous, MS will start moving away from x86. Windows 8 will run on both ARM and x86.
Mar
21
awarded  Nice Answer
Mar
21
comment If you had two projects with the same specification and only one was developed using TDD how could you tell?
In an ideal world this would be true, but here in the real world code developed using TDD looks drastically different from code that wasn't.
Mar
21
comment If you had two projects with the same specification and only one was developed using TDD how could you tell?
@Wyatt: I never said concrete classes can't be tested, I said they can't be mocked (again, in Java they can, but doing so is discouraged). This means that if you don't give a class A an interface, then any class B that has a dependency on A can't be tested in isolation from A; ie. a bug in A's implementation could incorrectly show up in the tests as a bug for B. This is not possible when A is mocked.
Mar
21
revised If you had two projects with the same specification and only one was developed using TDD how could you tell?
added 294 characters in body
Mar
21
answered If you had two projects with the same specification and only one was developed using TDD how could you tell?