Better HN
topnewbestaskshowjobs
Log inSign up

kevinkemp

16 karma · joined Jul 13, 2011 (15y ago) · 12 submissions

Submissions

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 15y ago · link · parent

I wouldn't lump named parameters and defaults together like that. They're completely separate concepts.

comment 15y ago · link · parent

If your method only has one responsibility, the chance that you need to "hide" any code is almost nonexistant.

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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

comment 15y ago · link · parent

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]); }

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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?

comment 15y ago · link · parent

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).