Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re: Why bother? (Score 1) 421

Uh, yes? Because that's how you write code that handles errors correctly. Exceptions come from three sources:
  • Runtime exceptions. These don't need to be caught or declared by Java code, but you can generally avoid them by making sure you have null reference checks and using iterators for collections.
  • Exceptions that you throw yourself. You know you're throwing these and the odds are that you want the caller to handle them (if you're using exceptions for intraprocedural flow control, then you're an idiot). So advertise them on your method. Done.
  • Exceptions thrown by methods that you call. These are all advertised by those methods and checked by the compiler (or your IDE), so there's no excuse for not knowing that they're expected.

This stuff isn't hard. You know at every call site what the possible exceptions are, and you know this because the compiler won't let you explicitly throw or fail to handle any exceptions in your methods. The exceptions that a method can throw are in the JavaDoc and are checked at compile time, so you'll get a compile error if you don't either handle or advertise the exception.

Good error handling is one of the key things that differentiates good developers from bad. If it's something that you find hard, in a language that goes out of its way to make it easy, then you might want to consider other careers.

Comment Re:More job loss (Score 1) 250

Yet the machinery that the Luddites were protesting led to 3 or 4 generations of chronic unemployment with hanging as the solution for kids stealing a loaf of bread, poor houses that were total hell and all kinds of other horrors. The only saving grace was the new world where people were encouraged to go and steal some land from the people that were already there.
Things were good though if you were smart enough to be born into the right class, lots of servants, work was something you'd never actually do and it was called a golden age.

Comment Re:Multi touch while driving? (Score 3, Funny) 123

But given that I've seen people disappear to reach into the glove box for a CD and fiddle with removing the previous, and change the CD while in heavy traffic

Brother, in my day, I could swap out an 8-track with a beer in one hand and a joint in the other while driving a stick shift on the Eisenhower Expressway at 8:45am. On mexican quaaludes.

Don't look at me like that. I was the designated driver. You should have seen the guys in the back seat.

Comment I actually think the finished product is cool (Score 2) 58

It's too bad the creator had to ruin it by opening his mouth. Any 'Art' that makes it's statement with a bunch of words next to it generally isn't art. It's glued together junk that's not aesthetically appealing. This guy actually made something neat and arguably pretty, then made sure we all knew his talents started with, and ended with, this sort of work.

Comment Re:could still use improvement (Score 2) 250

This already exists in sorts. Many pallets are shrink wrapped and have corners added that increase the rigidity of them. These corners are anything from wood slats, cardboard slats to other materials as needed/determined by the shipper to ensure the products arrive safely. Some are banded using metal or nylon straps and use tops that lock the products into place using their casing material as sort of walls.

Most material is placed on the pallets in interlocking patterns that allow the weight of the level on top secure the layer below. This stabilizes the layers and sort of creates the same wall type thing. Add some shrink wrapping and it will take a lot of abuse before falling.

Slashdot Top Deals

An authority is a person who can tell you more about something than you really care to know.

Working...