833 reputation
38
bio website
location
age
visits member for 4 years
seen Nov 12 at 19:54

Dec
22
awarded  Yearling
Sep
30
accepted Does setting a function public affect the C# compiler's ability to inline the function as an optimization?
Sep
18
asked Does setting a function public affect the C# compiler's ability to inline the function as an optimization?
Jul
26
awarded  Nice Answer
Jun
22
accepted Which is better design: Determining if a function should execute from outside of it, or inside of it?
Feb
23
accepted Noda Time vs Joda Time?
Feb
22
asked Noda Time vs Joda Time?
Dec
22
awarded  Yearling
Apr
21
comment Defensive Programming Techniques
@Giogio, this is a statement about code coverage. Defensive coding often has checks in multiple places, not just at the boundaries. This is good practice for routines that really really need to be protected, since in the case of a refactoring or code modification that moves one check, the other will still be there. For example, you can check for a zero value at the top of function, then later, use that value in a try-catch. The only possible invalid input value (0) would generate the only possible exception (divide by zero), thus you can't cover that catch block.
Feb
7
comment What is the best way to handle product versioning and branching of long term projects?
+1 However, I would add that source control is only part of your environment. I would take a VM snapshot on any build server(s) and also a snap shot of a development environment, so you can go directly to a real build environment when you need to.
Jan
5
comment When should I stop programming / coding?
There are also many open-source projects to which you can contribute.
Jan
2
answered Any standards for naming variables in for loops (instead of i,j,k)
Dec
22
awarded  Yearling
Oct
22
answered How to flag a class as under development in Java
Sep
14
comment *Code owner* system: is it an efficient way?
One of the biggest problems of code ownership is serialization. What happens when 90% of the work all lies within one person's area? Is the rest of the team supposed to sit on its thumbs and wait?
Sep
6
answered Want to know performance issues of Class types & access modifiers
Aug
5
comment Most efficient way of finding entities in a grid?
The K-D tree naively only partitions the space, so no two towers would cover the same pixel (no overlapping areas)
Aug
4
answered Most efficient way of finding entities in a grid?
Jun
8
awarded  Commentator
Jun
8
comment Are there any good tools to help implement or enforce the proper equals and hashcode patterns for c#?
It's certainly not every class. Mostly, it's in data transfer objects (things coming out of a database or going to an external client). An example bug would be that a dev implements ordering in IComparable which isn't a strict ordering because it compares only one field, where you'd need to examine another for a strict ordering. The rules about equal objects need equal hashcodes and always when CommpareTo returns 0 equals should be true are currently wholly manual and not easily inspectable by analysis tools, but codegen (or compiler) on these could enforce those guarantees.