Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment Intransitive equality and comparison in PHP (Score 1) 729 729

One of the many lovely things about PHP, though this time it's not the only culprit.

$ php -r 'var_dump("foo" == TRUE); var_dump("foo" == 0); var_dump(TRUE == 0);'
bool(true)
bool(true)
bool(false)

$ php -r 'var_dump(NULL == 0); var_dump(NULL < -1);'
bool(true)
bool(true)

Strange, and not in a good way. Makes the mathematical part of my brain explode.

Comment Re: Ridiculous. (Score 4, Informative) 914 914

See Table 6: Ex-Offenders and the Labor Market

At least according to one study, race is a big part of it. It's not the only part - level of education appears to have as big an effect - but it's clear that a black felon is much less employable than a white felon.

Never invest your money in anything that eats or needs repainting. -- Billy Rose

Working...