HNHacker News
TopNewBestAskShowJobs

kevinkemp

16 karma · joined July 13, 2011

submissionscomments
kevinkemp··on A violently true depiction of what war really is
I'm not sure that the math doesn't work out. I'd think that 80% of the part of the military that actively engages in combat is well below 5% of the population. I'd consider it obvious that psychopaths would be much more likely to join a group of people where they would be tolerated, perhaps even glorified while also giving them an outlet for their tendencies.
kevinkemp··on A "Moneyball" statician predicted Jeremy Lin's success 2 years ago
Exactly. The key difference is how advanced the statistics that matter are in the different sports. Only very advanced stats will really tell the story in basketball whereas it is much easier to see in baseball with just baseline stats. Most laymen take that to mean that watching games is the only way to tell when, in reality, they just need to get the right stats and formulas.
kevinkemp··on A "Moneyball" statician predicted Jeremy Lin's success 2 years ago
By most statistical measures, the Lakers are an elite defensive team. They allow only 0.458 efg% and 101 points per 100 possessions. I'm not exactly sure where that rates overall in the league, but I'd guess they are both in the top 15% or so.
kevinkemp··on Simple but Interesting Features of VS2010 and C# 4.0
I wouldn't lump named parameters and defaults together like that. They're completely separate concepts.
kevinkemp··on Simple but Interesting Features of VS2010 and C# 4.0
If your method only has one responsibility, the chance that you need to "hide" any code is almost nonexistant.
kevinkemp··on Sweet sanity: 75% of Americans say infringement fines should be under $100
Not that I agree with his proposal, but youre assuming that someone wouldn't pirate something that they weren't willing to pay money for. That almost certainly isn't true for a significant population.
kevinkemp··on How One Missing `var` Ruined our Launch
The real failure that opened you up to this race condition is naming. Initial is not specific enough and thus colided with another variable, that was also not named specifically enough.
kevinkemp··on What's wrong with this code, really?
Although your point on efficiency stands (at least with data structures that have to reshuffle contents on deletion), the type of loop that you use has nothing to do with the order that you delete the elements. You could easily do something like:

while (MyControl.TabPages.Count > 0) { MyControl.TabPages.RemoveAt(MyControl.TabPages.Count-1); }

For loop are nothing more than while loops with:

(1) an assignment (int i = MyControl.TabPages.Count in this case)

(2) an extra command (i-- in this case) added to the end

kevinkemp··on What's wrong with this code, really?
Actually, you will never delete the final element with that code.

I think what you meant was:

for (int i=this.MyControl.TabPages.Count; i > 0; i--) { this.MyControl.TabPages.Remove(this.MyControl.TabPages[i-1]); }

kevinkemp··on Official NASA Futuristic Space MMO May Come to Linux
What do you mean by "relatively easy to create"? If anything, I'd say that an MMORPG is probably the hardest (and most time consuming) genre of game to create.
kevinkemp··on Your problem with Vim is that you don't grok vi
I can appreciate continuancy of mind, but red squiggles shouldn't be a deterrant to that. Rather, it is simply saving you the step of compiling before giving you information. You can just as easily train yourself to not worry about red squiggles until you're finished with the task at hand.

As for variable naming, the better question is:

Why would you willingly choose less descriptive variable names when there are editors that will help you produce more readable code?

kevinkemp··on Why I left Google. What happened to my book. What I work on at Facebook.
What you just described is the opposite of targeted advertising. Advertising, in general, can be disruptive, but targeted advertising is definitely better than random advertising (which fits better with your example).