Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
1 5
Newest
 Commentator
Impact
~16k people reached

  • 0 posts edited
  • 0 helpful flags
  • 69 votes cast
Apr
14
comment Why do many exception messages not contain useful details?
@anaximander: It would actually have been possible to give more useful information in NREs when the platform was originally designed. The VM could easily have added "An instance of type IFoo was expected." I would have liked to have that information.
Apr
14
comment Why do many exception messages not contain useful details?
@anaximander: It would actually have been possible to give more useful information in NREs when the platform was originally designed. The VM could easily have added "An instance of type IFoo was expected." I would have liked to have that information.
Mar
30
comment Does path coverage guarantee finding all bugs?
@AndresF. True. I was thinking about traces, not paths.
Mar
30
comment Does path coverage guarantee finding all bugs?
If you have achieved path coverage, you know that the program halts. If you don't know if the program halts, there is some path which you have not enumerated.
Mar
30
awarded  Commentator
Mar
30
comment Does path coverage guarantee finding all bugs?
@Snowman: No, it is not. It is not possible to solve the halting problem for all programs but for many specific programs it is solvable. For these programs, all code paths can be enumerated in a finite (though possibly long) amount of time.
Mar
1
comment How can I tactfully suggest improvements to others' badly designed code during review?
Understanding your own motivation is not just selling. You need to understand why you like some techniques and not others, so you can know when your rules of thumb are valid and when they are not. Many, many issues arise from experienced programmers applying correct techniques in the wrong situations.
Nov
5
comment How to deal with no code reviews in my new place when I come from that practice?
It is possible that the benefits are not worth the cost. However, the fact that the team does not perform code reviews tells us nothing about whether or not they ought to.
Nov
5
awarded  Critic
Nov
5
comment How to deal with no code reviews in my new place when I come from that practice?
-1: The fact that the OP's new team does not do code reviews does not make it a bad idea to do so. It is a sign of a good engineer to help improve the quality of the development process.
Oct
28
comment Is it permissible to use explicit interface implementation to hide members in C#?
You write about IReadonlyCollection<T> but link to ReadOnlyCollection<T>. The first in an interface, the second is a class. IReadonlyCollection<T> does not implement IList<T> even though ReadonlyCollection<T> does.
Oct
28
comment Is it permissible to use explicit interface implementation to hide members in C#?
Why would you assume that the methods would even be implemented at all? If a class implements IReadOnlyList it doesn't have to implement IList too. This has nothing to do with explicit interface implementation, which hides methods that must be present.
Jul
21
comment How to reduce the number of bugs when coding?
In many cases that's true but it often isn't. Within some domains you need access to a lot of state, even if you don't have a lot of mutable state. I am currently working on a code generator where I need access to several symbol tables. I don't want to pass them around to each and every method.
Jul
4
comment How to reduce the number of bugs when coding?
In my experience it can quickly become tedious to pass around all the state for every call, if the methods are as small as they should be. This problem can be solved by using many small immutable classes with short object life-times. That way you can store the temporary state as fields and discard the object when you no longer need the state. :-)
Feb
26
awarded  Caucus
Jan
26
awarded  Yearling
Mar
6
awarded  Teacher
Mar
6
answered Is JavaScript interpreted by design?
Aug
21
awarded  Supporter
Apr
5
comment Programming with ADD/ADHD
-1: It seems as if you are trying to apply XP to solve any and all problems.