3,083 reputation
1322
bio website blueraja.com/blog
location
age
visits member for 3 years, 11 months
seen yesterday

May
16
comment What would be the Impact of P=NP?
+1 for the third bullet point - everyone knows that P=NP would affect crypto, but for some reason you rarely hear about how it would affect literally every other computing discipline on the planet.
May
10
comment Why is Global State so Evil?
@Truth see also
May
10
comment Is it wrong to use a boolean parameter to determine behavior?
I would prefer file.save(useEncryption: false)
May
10
comment Is it wrong to use a boolean parameter to determine behavior?
@Ray: I don't see a difference between those two questions. In a language where you can enforce the use of named parameters, or when you can be sure named-parameters will always be used (eg. private methods), boolean parameters are fine. If named parameters can't be enforced by the language (C#) and the class is part of a public API, or if the language doesn't support named parameters (C++), so that code like myFunction(true) might be written, it's a code-smell.
May
10
answered Is it wrong to use a boolean parameter to determine behavior?
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.