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


Forgot your password?
Note: You can take 10% off all Slashdot Deals with coupon code "slashdot10off." ×

Comment Re:Idiots... (Score 1) 1397

Answer me this: Why it's a best practice when coding to name the "Total annual cost" variable something like "totalAnnualCost" instead of "HappyZippers"?

I once had to maintain an app where the previous programmer had named an important variable boldLeonidas:
The old ones say we Spartans are descended from Hercules himself. Bold Leonidas gives testament to our bloodline. His roar is long and loud. - Dilios, 300

I'd forgive him that if this was controlling whether some text was bold or not, but I think it was an integer which collected a count of how many entries there were in a table.

Comment Re:does a bear poo in the woods? (Score 1) 125

an MD5 hash of the PIN number *is* stored on the card (making replay attacks possible, believe it or not).

if MD5 is ever cracked...

game over: anyone can get your PIN number.

Bullshit and chips. Look, there are only 10,000 possible pins, do you know how long that would take to force? Hell, a complete rainbow table is only 156k. Even if salted, do you know how long it takes to hash 10,000 4 digit numbers?

There. Just did it. Took 0.1 seconds on my 800mhz laptop.

Your information does not pass a basic sanity test.

(Plus, it's debit cards which have PINs, not credit cards)


Submission + - Shouldn't copyrights last forever?

proxima writes: Mark Helprin, author and fellow at the Claremont Institute, writes an op-ed piece in today's New York Times. He responds to the argument about expiration being for the public good by saying, "it might also be for the public good were Congress to allow the enslavement of foreign captives and their descendants (this was tried);" He argues that Congress should extend the length of copyright again, "as far as it can throw". This is certainly a striking position compared to many on Slashdot and fellow guest columnist Lawrence Lessig (access to archives required).

In a five year period we can get one superb programming language. Only we can't control when the five year period will begin.