2,858 reputation
11122
bio website
location
age
visits member for 3 years, 8 months
seen Sep 26 at 15:50

Jun
7
comment Function locals: variable used in just one function
You can do it in Java, but it requires a bit of work. Specifically, you'd have to create an annotation to label the field and then an annotation processor to enforce the scope.
Jun
3
comment How do you explain NP-Completeness/Unsolvability to a non-technical supervisor?
+1 for the comment on the millennium problem.
Jun
3
comment Converting a 1,000,000 rows database
ISTM the real question is what you need to do to ensure that the plaintext credentials aren't still kicking around in the DB's journal or in unused pages.
Jun
3
answered Capitalization of hierarchical constants
Jun
1
answered What should I do to leave a job professionally?
May
29
comment What is the best retort to “premature optimization is the root of all evil”
@Erik, the point I was most interested in making was indicated by the first emphasis: all the other translations above add a definite article which isn't in the Greek. For the second I'm being very literal, and certainly "all kinds of" is the only obvious interpretation of "pantwn".
May
29
comment What is the best retort to “premature optimization is the root of all evil”
@barrycarter, @Erik: "For the love of money is a root of all the evils".
May
26
comment Why do Windows Forms / Swing frameworks favour inheritance instead of Composition?
@devoured, I think that's a case of people not realising that the tutorial they use isn't following best practice because it's favouring brevity.
May
24
comment Is it legal/ethical to collect and release some types of anonymous usage data without consent?
There's no point asking whether something's legal unless you say which jurisdictions might apply. Your profile says you're in Canada, but for all we know you're working for a French company which will host its servers in India, so there could be three or more sets of laws to consider.
May
21
comment Learning C# quickly (given I already know…)
And there are some major differences around generics.
May
21
comment Subset sum problem is NP-complete?
Crossposted from Math.SE.
May
20
comment What are some fun (and very easy) C++ programs for a 10 year old kid to write?
@Davor, I was writing a database in BASIC when I was 10. Ok, I didn't know relational logic, but it allowed me to store and retrieve data.
May
20
answered Architectural Patterns for a Game
May
20
comment Architectural Patterns for a Game
Why are Map and MapCell in UI? They sound like part of the model.
May
19
comment Subversion Tools To Help With Branching and Merging
The best tip I have is not to use Subversion. It doesn't track revision history very well over merges: a "blame" will give you the revision of the merge rather than the revision of the original change, which would be far more useful.
May
18
comment algorithm from scientific paper
I believe, although I'm not an expert, that in the US it's 20 years from grant, and some companies deliberately spin out the approval process for that reason.
May
17
comment Why almost no webpages hash passwords in the client before submitting (and hashing them again on the server), as to “protect” against password reuse?
@Jarrod, what's your threat model, and what's the break?
May
17
comment Why almost no webpages hash passwords in the client before submitting (and hashing them again on the server), as to “protect” against password reuse?
Not sure why this is voted down. @Tyanna, you're correct that you can't log in with JS disabled; that's implicit in the question, so you shouldn't be surprised to see it in an answer. And you're (mostly) wrong about it being easy to get the password. It would be better to use a member of the SHA-2 family (and to have explained the mechanism for upgrading to SHA-3, although this scheme would support that in principle in a similar way to password changes), but the important point is that SHA-1 is a hash, not a cipher.
May
17
comment algorithm from scientific paper
@bor, the question you asked wasn't "Is all innovation from academia protected by patents?" but "Can innovation from academia be protected by patents?" @cidermonkey is giving you the correct answer (yes, it can be and often is) and some additional warning information on top.
May
16
comment All possible solutions to equation, where operators are arbitrary?
Definitely wouldn't be welcome on CSTheory.SE. Probably a dupe of something on Math.SE.