Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment Re:Anthropometrics (Score 1) 819

Opportunities for violent crime are much much more in cities than in rural areas. Say e.g. one person lives completely alone - who would he commit a violent crime against? In a city of n people, opportunity of crime is nC2 i.e. n*(n-1)/2. But actual crime is much less than proportionate when compared to rural areas. Some crimes take more than 2 people, say m, - for them it should be nCm.

In that interpretation, it is true that cities have lower crime but just more people. Remember to divide crimes by nC2, not n.

Comment Re:Null Terminated Strings (Score 1) 729

I agree with the argument of having limitless strings - KISS principle is followed in C correctly, but only because limitless strings are desirable.

It is not true that this is simpler than storing size separately. If storing size separately is a complication, inability to store \0 in a string is a limitation. We can work-around it by escaping, but then it adds complication, which was supposedly avoided by not storing size.

So it was a choice between 2 kinds of complications, one of the complications was chosen because limitless strings were more useful than the ability to store evere possible byte in a string. Not an unconditional KISS.

Comment Re:how about .... (Score 1) 131

Saying "Well, then, don't use it" is unhelpful and unrealistic.

Ignorant people always suffer. Law of nature. They get suckered into eating bad, buying bad, into paying more for most things, electing bad representatives, visiting websites which are out to screw the users.

Knowledge is the solution to many of these problems. Including this particular one.

Did you discover this just now?

Slashdot Top Deals

An adequate bootstrap is a contradiction in terms.

Working...