525 reputation
212
bio website khurasia.com
location Hong Kong
age
visits member for 4 years
seen Feb 16 at 6:41

Hi,

I am Apoorv Khurasia. I have a graduate degree in applied physics and computer science. I am passionate about developing and designing good quality software.

In my free time I do physics, read history, ride my bicycle, or play my guitar or violin.

Here is my bookshelf.


Jun
14
comment C# foreach improvements?
@Jalayn Please post that as an answer. It is one of the best approaches.
Jun
14
comment Warn about 3rd party methods that are forbidden
Yeah. It is a huge library. But even worse, we have lots of such libraries (across C#, Java projects). I am also thinking of a post compilation ant checks.
Jun
14
comment C# foreach improvements?
-1: Bill Wagner in More Effective C# describes why one should always stick to foreach over for (int i = 0…). He has written a couple of pages but I can summarise in two words --compiler optimisation on iteration. Ok that wasn't two words.
Jun
14
asked Warn about 3rd party methods that are forbidden
Jun
10
comment Sharing object between 2 classes
@justin glad I could help.
Jun
10
awarded  Yearling
Jun
10
revised Sharing object between 2 classes
added 39 characters in body
Jun
10
comment Sharing object between 2 classes
@Justin Added two example code stubs that you can re-use. I don't know PHP so there may be a few syntax errors here and there, hope you will recognize them and avoid them.
Jun
10
revised Sharing object between 2 classes
Added code for clarity
Jun
10
revised Sharing object between 2 classes
Added code for clarity
Jun
9
comment Sharing object between 2 classes
It will solve the problem but I won't recommend it though. You should use the singleton pattern only when the design of the object itself mandates that it be singleton.
Jun
9
comment Sharing object between 2 classes
@Justin yes (in essence). Sorry, I am on a mobile device and cannot post code. Will post it shortly when I get to a PC.
Jun
9
answered Sharing object between 2 classes
Jun
9
comment How should my local git workflow work?
@Kos I think it would be best if you post that as a question. I myself would like to know an answer to that question.
Jun
9
revised How should my local git workflow work?
added 1 characters in body
Jun
9
answered How should my local git workflow work?
Jun
9
awarded  Citizen Patrol
Jun
9
comment Can you program Android Apps in a functional language?
+1 to neutralise the down vote. I do think this is a good and specific question.
Jun
9
comment null pointers vs. Null Object Pattern
Fair point DXM.
Jun
9
comment null pointers vs. Null Object Pattern
I now understand what you meant by catastrophic error --something that causes the object allocation itself to fail. Right? Edit: Cannot do @ DXM because your nickname is just 3 chars long.