Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?

Comment: Re: Hodor (Score 0) 127

why not just:

bool WillCharacterBeKilled(Character c) { return IsCharacterPopular(c); }

and if this were C++, I would do:

bool WillCharacterBeKilled(const Character &c) { return IsCharacterPopular(c); }

as passing by reference (using the ampersand) prevents having to create an unnecessary copy of the object.

Comment: Re:freemasons run the country (Score 2) 133

by AsmCoder8088 (#47553903) Attached to: A Fictional Compression Metric Moves Into the Real World

The formula is not too bad, although I would suggest a minor tweak, mainly that one should change it from:

(compression ratio)/log(time to compress)


(compression ratio)/log(10+time to compress).

This will ensure that no divide by zero occurs, specifically if the time to compress is 1 second, then you would have been dividing by zero in the original formula.

Comment: Re:We are a colony organism (Score 1) 162

by AsmCoder8088 (#46307805) Attached to: Gut Bacteria Affect the Brain

Not only that, but the statement that we are 90 percent microbial and 10 percent human given that there are 10 times as many microbial cells as there are human cells is mathematically incorrect:

1.0 = (10y)+y
1.0 = 11y

Therefore it is more accurate to say that we are 90.909% microbial and 9.0909% human.

Comment: Re:30Km isn't space (Score 1) 104

by AsmCoder8088 (#45207497) Attached to: Company To Balloon Tourists To the Edge of Space For $75,000

It would be like paying $75,000 to sit 30% closer to the Lamborghini than everyone else.


At 30km altitude, you are much more than 30% closer to space than everyone else.

Even if everyone were at the summit of Mt. Everest, which is at 8.8km, you would still be 3.4 times (240%) higher up than they are.


Localized (Visual) Programming Language For Kids? 185

Posted by timothy
from the because-english-sometimes-sucks dept.
First time accepted submitter jimshatt writes "I want my kids to play around with programming languages. To teach them basic concepts like loops and subroutines and the likes. My 8-year-old daughter in particular. I've tried Scratch and some other visual languages, but I think she might be turned off by the English language. Having to learn English as well as a programming language at the same time might be just a little too much. I'd really like to have a programming language that is easy to learn, and localized or localizable. Preferably cross-platform, or browser-based, so she can show her work at school (Windows) as well as work on in at home (Debian Linux). By the way, she speaks Dutch and Danish, so preferably one of those languages (but if it's localizable I can translate it myself). Any suggestions?"

Comment: Re:fuck electronic voting (Score 1) 398

by AsmCoder8088 (#41861469) Attached to: Why Does a Voting Machine Need Calibration?

Also, I would like to add that we are really talking about two separate issues here.

For me, I do not like that we lose voting accuracy. So there are simple ways to improve on it, like I stated earlier.
For you, you do not like that it has become a popularity contest, and that it comes down to uninformed masses making the decision. I won't argue with you there.

But for your issue, again that has nothing to do with voting accuracy. Instead, that has to do with educating the uninformed masses, which is indeed an entirely separate issue altogether, and the electoral college does not solve that problem.

Like they say in programming: garbage in, garbage out. Since the electoral votes themselves are based upon the votes of the uninformed masses, they too are going to be garbage. But at least we can have a more accurate outcome if we improve upon the current electoral scheme.

Comment: Re:fuck electronic voting (Score 1) 398

by AsmCoder8088 (#41861349) Attached to: Why Does a Voting Machine Need Calibration?

Yeah, that whole thing about each State selecting the president... All that means is that my vote doesn't matter because it is going to be nullified from winner-take-all.

Like I said before, if the US were just one big "State", then winner take all is fine. I get that. But when you have winner-take-all applied across multiple states, you lose voting accuracy.

Again consider my updated example:

State A: 500,001 votes for candidate 1; 499,999 votes for candidate 2
State B: 0 votes for candidate 1; 100,000 votes for candidate 2
State C: 0 votes for candidate 1; 100,000 votes for candidate 2

Again, state A gives ten electoral votes to candidate 1, and states B and C each give one electoral vote to candidate 2.

In this example, candidate 2 gets a total of 699,999 votes, and candidate 1 gets a total of 500,001 votes. Yet due to the electoral votes, even though candidate 2 got 39% more votes, he/she would still lose.

I will not argue that indeed, today it may seem like a popularity contest is taking place, but in the end, to allow for the outcome of one state to nullify the outcome of the others (like in the above example), seems preposterous to me.

The flush toilet is the basis of Western civilization. -- Alan Coult