525 reputation
212
bio website khurasia.com/apoorv
location Hong Kong
age
visits member for 3 years, 10 months
seen Feb 16 at 6:41

Hi,

I studied applied physics and computer science at college. I am passionate about developing and designing good quality software.

In my free time I do physics, read history, ride my bicycle, or harass my wife with my guitar and violin.

Here is my bookshelf.

Cheers!


Oct
5
comment How can I reformat my condition to make it better?
I prefer !exists || !isDirectory over the last one.
Sep
22
comment Improving without mentor
+1: Teach. Yes. Sometimes when I am preparing a small demo session I invariably find myself asking questions that my audience would. In an attempt to prepare for answers I research and more often than not I learn something invaluable.
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.