3,667 reputation
21932
bio website
location
age
visits member for 4 years, 4 months
seen yesterday

Apr
12
comment Ambiguity of seemingly clear method names in APIs
+1. Regarding your comment: returning the data is ideal, except that it's a huge performance hit to allocate a new buffer every time, so it's not done in practice (as you can tell in Stream).
Apr
12
comment Ambiguity of seemingly clear method names in APIs
@BenAaronson: I guess, but that's neither the real problem here nor can I think of better names. The problem still exists inside the other methods in MyComponent and in derived classes, doesn't it?
Apr
12
asked Ambiguity of seemingly clear method names in APIs
Apr
4
awarded  Notable Question
Mar
24
comment Do dynamic typed languages deserve all the criticism?
@PaulNathan: You're thinking too hard. The question was asking about dynamically typed languages, and this answer mentions Java as though it's dynamically typed.
Mar
24
comment Do dynamic typed languages deserve all the criticism?
@PaulNathan: Did you read the question?
Mar
24
comment Do dynamic typed languages deserve all the criticism?
I like your answer but Java isn't dynamically typed...
Mar
24
comment Method extraction vs underlying assumptions
+1 One thing that's important to note is that there is a cost to splitting up a big method into smaller chunks: it's typically not useful unless the preconditions and postconditions are more relaxed than they would have been originally, and you can end up having to pay the cost by re-doing checks that you would have otherwise already done. It's not a completely "free" refactoring process.
Mar
24
comment Method extraction vs underlying assumptions
Relevant: Is it always a best practice to write a function for anything that needs to repeat twice?
Mar
21
comment When is it a good idea to force garbage collection?
+1 for that paragraph as well. I find it shocking that people think a computer program written by someone else must necessarily understand the performance characteristics of their program better than themselves.
Mar
20
awarded  Curious
Mar
16
comment What is the reason of using an interface versus a generically constrained type
Interface methods are indirect calls, whereas type methods can be direct calls. So the latter can be faster than the former, and in the case of ref value type parameters, might actually modify the value type.
Feb
23
comment What about LISP, if anything, makes it easier to implement macro systems?
Macros need to execute though, at that point you're already writing an interpreter for the language.
Feb
17
awarded  Notable Question
Feb
17
awarded  Nice Answer
Feb
16
revised Why is base-for-all-objects discouraged in C++
added 16 characters in body
Feb
15
answered Why is base-for-all-objects discouraged in C++
Feb
15
answered Do algorithms depend on computer architectures?
Feb
3
comment Is a 1 < 10 comparison less expensive than 1 < 1000000?
It could be less expensive if it were in the critical path, but it's almost surely not.
Jan
20
revised Is address 0000000C a special address?
"65 kB" was unnecessary