Reputation
550
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 12
Impact
~21k people reached

Aug
18
comment Should I take care of race conditions which almost certainly has no chance of occuring?
Ever heard of a black swan? The 2007 financial crisis?
Aug
18
comment Should I take care of race conditions which almost certainly has no chance of occuring?
I down voted this one. The cost of the error matters not its chances of occurring.
Aug
17
comment How to use the clients webcam for recording through a website?
What kind of interfacing --chat, streaming video, or pictures? Google search shows a lot of links.
Aug
12
comment Does “Property” in C# cost much?
Don't see any reason as to why this should be down voted. Although I really don't like the question I will +1 to compensate.
Aug
11
comment Why would more CPU cores on virtual machine slow compile times?
I'd like to reproduce this on my own machine. Can you please upload a sample project somewhere? I suspect the virtual machine is playing tricks here. Try booting to Windows natively (Bootcamp) and see if you observe the same behaviour --I doubt you will.
Aug
8
comment Where do I place my example implementations in my framework?
What is the language?
Jun
16
comment Where does Microsoft currently stand on dynamic languages?
msdn.microsoft.com/en-us/library/dd264736.aspx
Jun
16
comment Where does Microsoft currently stand on dynamic languages?
As a start, C# 4.0 does allow a little dynamic programming.
Jun
15
comment Warn about 3rd party methods that are forbidden
@RossPatterson True. It is not that bad --particularly if the library is small.
Jun
15
comment Warn about 3rd party methods that are forbidden
That's exactly what I want. Use that function and the IDE generates a warning.
Jun
15
comment Warn about 3rd party methods that are forbidden
@RossPatterson wrappers are not just a one time capital investment. They can become a maintainanace nightmare in some cases.
Jun
15
comment Should I add an “Abstract” prefix to my abstract classes?
@BryanOakley why not also put public and final as well? A class name would then look like PublicAbstractPersonThatImplementsInterfaceHuman. Hmm, not quite sure that's good. But I agree, there is nothing such as a universal convention -- use whatever increases the team's collective productivity.
Jun
14
comment Is 100% code coverage a pipe dream?
+1 for project size. Breaking down into smaller, reusable, and testable components has allowed us to gain ~95% coverage ourselves. 100% coverage is not necessary. Integration testing should cover unit testing gaps.
Jun
14
comment Warn about 3rd party methods that are forbidden
Thanks. I am going to try MattDavey's solution first because it allows me to do static analysis. That said, if all static approaches fail, I will try your solution.
Jun
14
comment C# foreach improvements?
Continued: @DocBrown Besides, and while I do admit performance benefits aren't significant, how often do you find the collection indexed for the for loop to work?
Jun
14
comment Warn about 3rd party methods that are forbidden
@MattDavey That is true.
Jun
14
comment C# foreach improvements?
@DocBrown This is not as simple as premature optimisation. I have myself identified bottlenecks in the past and fixed them using this approach (but I'll admit I was dealing with thousands of objects in the collection). Hope to post a working example soon. Meanwhile, here is Jon Skeet. [He says performance improvement won't be significant but that depends much on the collection and the number of objects].
Jun
14
comment Warn about 3rd party methods that are forbidden
This sounds promising. I am going to try this tomorrow and let you know. Thanks Matt.
Jun
14
comment Warn about 3rd party methods that are forbidden
@MasonWheeler Sadly, we actually cannot. It is a compiled binary (.dll, .jar) that we use. Plus, there are pitfalls to that approach as we can go off latest, miss out on support (which is very critical to us), etc..
Jun
14
comment C# foreach improvements?
@Jalayn Please post that as an answer. It is one of the best approaches.