Reputation
2,399
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
5 10
Newest
 Custodian
Impact
~44k people reached

  • 0 posts edited
  • 0 helpful flags
  • 81 votes cast
Jul
8
answered How probability function is computed for the game Battleships?
Jun
25
comment What can multiple threads do that a single thread cannot?
Race conditions?
Jun
22
comment Simple and clean way of comparing three numbers
@DocBrown My bad, the tag didn't register in my head.
Jun
22
comment Simple and clean way of comparing three numbers
Or instead of holding two arrays, hold one array of key-value-pairs: { MOSTLY_A, countAs() }, take the first element ordered by value and read off the key.
Jun
1
answered Is it a good practice to wrap all primitives and Strings?
May
21
comment Should I tell someone that their commit caused a regression?
In a good shop, most regression bugs are caught by automated tests - in which case the culprit should be aware anyway due to an automated email. Those that slip through are unlikely to have arisen from a single person's failure - the code may be buggy but also the tests could be better, the code reviewers missed something, etc. etc. If you are in such a shop, follow the answers below and tread very carefully. In a bad shop, save your energy for improving the system to catch more regressions early.
May
6
comment A CLR SQL Server Stored Procedure calling an ASP.NET Web API
Sounds like a horrible violation of SRP. What triggers the stored proc, and why can that not look after calling other APIs?
May
1
comment Is 100% code coverage a pipe dream?
+1 for Andrea - also code coverage from unit tests is orthogonal to race conditions and cross-thread pollution, UI bugs, and mismatches between what the code does and what the users expect. The effort spent squeezing out the last few % of coverage could probably be spent better elsewhere.
Apr
30
comment How to make people new to programming stop asking me questions and distracting me?
Mail them lmgtfy links beyond the point where the joke wears off.
Apr
8
answered Why are my unit tests so expensive?
Mar
26
awarded  Custodian
Mar
26
reviewed Reject Why does the boolean type in C++ support `++` but not `--`?
Mar
16
comment Naming conventions for instance, local and parameter variables
The prefixes duplicate information that is already contained in the code and displayed in any half-decent environment. And as we all know, duplicate information can become inconsistent. DRY should point you towards not using the prefixes.
Mar
10
comment When do programmers use code first approach?
This just reads like a rant along the lines of "code-first isn't doing it properly".
Mar
9
comment Robot in a grid
Aha, thanks! (Though I have seen too many interview candidates fail questions that trivial...)
Mar
9
comment Robot in a grid
Am I reading it wrongly? When you change j (move down) you do it by i not by 1. Therefore the number of down steps you need depends on how many rightward (increasing i) steps you have taken and where in the sequence they happened.
Mar
6
comment How to organize code which converts from one type to another
If you use parameterised queries in general, why develop an exception specifically for date ranges? Is there some problem passing range_start and range_end as separate parameters?
Mar
5
answered How to organize code which converts from one type to another
Mar
2
comment Good interview programming projects
+1 @Jer. Last time I interviewed for a programmer, six out of eight candidates couldn't complete the most basic tasks (even with Google and SO). There's no way I would let them near my real codebase for five minutes, let alone 30 days.
Feb
23
comment Does Oracle reap economic benefits by maintaining Java?
Also if not Oracle, then probably someone else would take their place. Imagine how many companies out there would effectively lose their flagship product, or have to embark on years of rewrite, if it were announced that Java was permanently dropping out of support. They would all have a strong interest in chipping in to keep it going. Particularly in the business world, where users tend to be highly risk-averse and keep legacy systems going far longer than in the consumer world.