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

 



Forgot your password?
typodupeerror
×

Comment You can start people clapping really easily (Score 5, Interesting) 138

When I was in my teens, I was watching a circus. Between every act, a cleaner with a broom and a garbage bag would clear any detritus from the ring.

After a few acts, I clapped this guy, just for a laugh. To my surprise, everyone else joined in. From that point on, until the end of the show, the cleaner got rapturous applause every time!

Comment The first online appliance that non-geeks discover (Score 1) 236

This product is significant because it will be the first online appliance that most non-geeks will discover.

After people get used to the Good Night Lamp, they won't bat an eyelid when their car tweets that it has just received a parking ticket (and by the way, the front left tire is half-flat). They'll take it in good stride when their refrigerator emails to say that it is shutting down unless the six-month-old lump of rotting blue cheese is removed by midnight.

People will expect their toothpaste tube to order the next tube to be delivered just in time, and won't be surprised if the park bench posts a YouTube video of their fat ass sitting on it.

Comment Re:Agree complete (Score 1) 231

Parliament can and should come out and say "Many years ago, our country adopted laws and policies which we now know were morally wrong. We apologize for those acts. We cannot undo all of the wrong that was done, but this is what we are doing: repealing all laws against victimless crimes, and releasing everyone currently imprisoned for victimless crimes

Fixed it for you!

Comment There is a better way to use exceptions (Score 2) 536

But even in exception-based languages there is still a lot of code that tests returned values to determine whether to carry on or go down some error-handling path

The key to taming exceptions is to use them differently. Any exception that escapes a method means that the method has failed to meet its specification, and therefore you will need to clean up and abort at some level in the call chain. But you don't need to catch at every level (unless your language forces you to), nor should you need to do anything that relies on the "meaning" of the exception. Instead, you take a local action: close a file, roll back the database, prompt the user to save or abandon, etc, and either re-throw or not according to whether you have restored normality. There will only be a few places in your app where this type of cleanup is needed.

If you're not doing it this way, you're using exceptions as a control structure, and that's never going to be clean.

Comment Not what it seems! (Score 3, Insightful) 55

If the government really wanted tax-funded information to be free, they would just declare that it was public domain. Society would find a way to disseminate that information at zero cost to the taxpayer.

Instead, this looks like a bureaucratic project designed to take years and absorb lots of taxpayer's money, while giving the illusion of making information nominally "free" but retaining control, and giving Jimmy a high-profile ego-stroke in the hope that he may moderate his objection to internet censorship.

Slashdot Top Deals

Beware of Programmers who carry screwdrivers. -- Leonard Brandwein

Working...