Reputation
558
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
2 12
Newest
 Quorum
Impact
~7k people reached

Apr
21
comment Readability & Performance: Is it better to allow the Java garbage collector to clear a datastructure?
The cleared array would be filled again with new content. That's why null wasn't used.
Apr
16
comment What to bring to a programming interview?
I still don't see why it's necessary to bring a resume printout. Interviews should be conducted without having to ask the candidate to bring printouts of anything: nrecursions.blogspot.in/2015/10/…
Mar
14
comment Transitioning from C++ multithreading to Java multithreading
Ah the example I had just copied from the popular mutex tutorial on the internet. While the use of smart-pointer-protected locks is better, it'd help to know that there are some applications (like one I worked on), which needs such fast processing, that smart pointers actually slow down the program by a third. We had to replace boost pointer containers with a simple array implementation and noticed a huge improvement in performance. For smart pointer mutexes also, one man's meat is another man's poison.
Feb
16
comment Is it viable to copy contents of a database into a program's memory, if multiple queries take time?
@DocBrown: The result could be stored in a table having 1 row for each combination of ABCD. Every combination is checked with rows of E and if a condition is satisfied, an integer value associated with that combination, is incremented. That integer value is stored in the table having 1 row for each combination, as you indicated. So this final "count" table will have 240 million rows.
Feb
16
comment Is it viable to copy contents of a database into a program's memory, if multiple queries take time?
@MichaelT: In one pass? Really? I didn't picture that being possible. There is a variety of columns in table E. 240 million is just the start. There's plenty more data that's going to come in later, which is why I'm wondering if it really is better to do the counting in SQL or to take the data into Java and work on it there.
Jan
17
comment Git Bisect found the buggy commit. Now what?
@gnat: What's with the link on chameleon questions? I didn't change the question. I was mentioning the solution (and mentioning to delnan that I understood what he explained) to the problem, as part of my update to the question.
Jan
17
comment Git Bisect found the buggy commit. Now what?
Hmm...interesting info about git blame. Actually, for bad commits A and B, I didn't know which line of code caused the problem, so bisect was necessary. After finding the commit I had a look at the files that had got modified during the commit and the diff of what changes were done. Looks like that's exactly what a blame does. Still, blame and show seem to be nice ways of getting the job done. Thanks!
Jan
16
comment Git Bisect found the buggy commit. Now what?
Thanks. I've updated my question to explain what I understood.
Jun
9
comment Why exactly is Git's pull and push approach better than Clearcase's locking and hijacking approach?
"There isn't really much difference in practice" - Well said!
Jan
16
comment Conceptually, is the single page web app more efficient than the web app that loads pieces of the page for every page?
Not very familiar with those. I've already tried with iframes, but the iframe borders don't disappear even after using border: none. So tried loading into div and it loads only some elements. Problem is, I have to take a decision in a few hours and proceed.
Nov
14
comment Why can't I understand Java?
@Cal: One does not have to be a math wiz to be a good programmer. My school teacher actually took me to a corner and advised me to take up Commerce instead of Computer Science because my math and physics grades were low (but I scored high on the logic test which was a test the school conducted to decide whether a person was good enough to study computer science). I chose CS anyway, went on to become one of the top three programmers in class and because of CS, my math and physics grades also improved coz thinking logically to write programs made me understand how to solve math and learn physics
Nov
10
comment Is it imaginable to teach a machine how to program itself to a defined specification?
@florian: We ourselves are machines who have learnt how to do programming (assuming aliens/god created us :-) ). Of course we haven't yet acquired the ability to program DNA sequences etc, so if you create a machine that has to learn how to program eventually, you have to program it to "evolve" and eventually learn how it itself was programmed.
Sep
22
comment Would it be a wise decision to opt for just Javascript to create a single page application, instead of HTML and CSS?
Really? Isn't there anything that can do something like image.position(x,y) where x and y are the coordinates on the browser?
Jun
29
comment Does syntax really matter in a programming language?
Which makes me wonder, why did people have to vary syntax style to such an extent in the first place? nrecursions.blogspot.in/2014/06/another-new-syntax.html
Jun
9
comment programming on handheld devices
Agree. So laptop is the way to go...
Jun
8
comment programming on handheld devices
So is a laptop still the only mobile device which is good enough for programming? I was looking for something that's good enough. Hope there's a good device at least now in 2014
Jun
8
comment programming on handheld devices
Wow! I'm surprised (and happy) to hear about the Nokia N900. Are there any better devices now that can be used for programming?
Mar
4
comment Using π, φ, λ etc. as variable names while programming?
At first I thought you wrote "geek keyboards" :)
Oct
22
comment What would be the market life of a JVM based software framework?
As of now I'm assuming Spring is one such framework that's likely to stick around for a while. Just worried about the increased popularity of Vaadin and the fact that Groovy and Scala are hot on the market right now.
Oct
21
comment What would be the market life of a JVM based software framework?
Thanks. I'll be going through the video shortly, but the question really isn't about which framework to choose. It's about the market life of the frameworks. Any help on that would be appreciated. Or...should one not be worried about the market life?