Archive for September 2002

Java Vs C Checked Vs Unchecked Exceptions Billy Barrett Writes BLOCKQUOTE

Java vs. C#: Checked vs. Unchecked Exceptions

Billy Barrett writes:

I have come to the conclusion that writing a highly robust application with C# is nearly impossible because of [reasons such as…] you are catching the exceptions that are being thrown and then the person who wrote the component you are using adds a new exception. As you realize, they will more often than not forget to tell you and now you won’t be handling it.

>I can’t think of a crisis scenario. At iteration 1, the system is working and handling exceptions A, B, and C. At iteration 2, new exceptions D and E are introduced. D is a subtype of C, an E is a totally new exception, unlike anything that’s gone before. Presumably, our code that handles C should handle D just fine. In Java, we can’t get a successful compile until we address the issue of E, while in C#, the compilation works fine, but the first time that an “E” is thrown, the system stops. No code breaks that shouldn’t, i.e., the only time the system fails is when the system is in a state that generated this new, unlike-anything-we’ve-seen-before exception, which means that either the system is dealing with a scenario we hadn’t dealt with in iteration 1 or our understanding or requirements for the scenario have changed. One way or the other, the code that breaks, should break.

It’s important to note that with .NET we do not face the DLL Hell of introducing an iteration 2, E-throwing component into a system that depends on the iteration 1, only-A,B,C-throwing component. The versioning stuff can ensure that if our system is only robust with the iteration 1 A,B,C-throwing component, then our system will continue to use the proper component.

The only scenario where things break down is when I just slipstream the throwing of E, without letting anyone know that I’ve introduced dramatic new behavior to the system. But do we really want or need a compiler to be the guard against such behavior?

All The Cool A Href

All the cool kids are going to the Sells Brothers Web Services DevCon 10-11 Oct in Bedford, MA. I’ve been spending all my time preparing for the BZ Media Web Services Dev Con happening this week in NYC. Both should be good but the Sells Brothers is clearly more technically oriented; I wish I could go.

Whitepaper Pingback Vs Trackback A Hrefhttpwwwdaypopcomtop

Autonomous Vehicle Race From LA To LV 1M To First Across The Line

Preorder Th

potholes Daypop Top 40 Ph

“potholes” [Daypop Top 40] Photoshop makes me doubt such things, but if it’s real, it’s funny.

Friday Five 1 What Are Your Favorite Ways To Relax

Friday Five:

1. What are your favorite ways to relax and unwind?

Coding and pondering challenges in information theory is my favorite way to escape from the real world. But since mostly what I do is code, I have to relax and unwind from that. To be honest, I put so much mental effort into my work that mostly I relax by watching TV or movies: very passive activities. I also read quite a bit: probably four or five magazines a week, a novel and a non-fiction book every couple of weeks.

To get out of the house, I take my dog on hour-long walks every other day (Tina takes her the other days). Since we live right near trails, that gets me exposed to nature. Of course, my favorite ways to unwind are sailing and SCUBA diving, but they are not something I can do on a weekly basis.

2. What do you do the moment you get home from work/school/errands?

I say “hi” to Tina and Cheyenne. Then I check my email. Then I check cnn.com to confirm that there hasn’t been a terrorist thing; seriously, the fact that I’d been at my computer coding for half an hour before I knew about the 9/11 attacks really tweaked me.

3. What are your favorite aromatherapeutic smells?

Ocean. Brownies.

4. Do you feel more relaxed with a group of friends or hanging out by yourself?

I feel more relaxed by myself, but I feel more energized by being with people. Back when I worked at MFI they gave us Myers-Briggs and similar tests: I was exactly at the halfway point between being an introvert and an extrovert.

5. What is something that you feel is relaxing but most people don’t?

Putting a tank of highly compressed air along my spine, strapping enough lead weight to my hips so that I won’t float, and getting in water so cold that it hurts every part of your skin that isn’t encased in a dank, cumbersome tight-fitting suit of neoprene. Oh, and I guess you don’t find a lot of people wishing they had more time for “pondering challenges in information theory.”

New Scientist Is Reporting Some Sciencebased Speculation That The Acidi

New Scientist is reporting some science-based speculation that the acidic clouds of Venus may harbor microbial life. “Microbial” my sweet aunt Agnes — I’m thinking shark-blimps that endlessly pursue schools of blimplets as they swirl through the jetstream…

Clones To Be Rerendered Displayed On Imax Supposedly Theres A Digital

Clones” to be re-rendered, displayed on Imax. Supposedly, there’s a digital printer for the IMAX that prints 8000 x 6000 resolution. And then also, one supposes, they can render the scenes using the appropriate “lenses” (I once saw 2001 on an IMAX screen and the obelisk looked like a melted power bar). Lessee: 8000 x 6000 x 24 FPS x 143 minutes = 9,884,160,000,000 pixels. Sheesh. Who would have guessed that computers would produce a 10 terapixel movie before they were capable of competent speech recognition?

Oh Those Charismatic Megafauna Get Al

Oh, those charismatic megafauna get all the props. UNEP has put Great White Sharks in Appendix I of the Convention of Migratory Species, which means that every nation has to prevent taking them. More interestingly, apparently there’s a camel species recently discovered “in a lost land of salty sand dunes on the edge of the Tibetan mountains” that survives by drinking salt water that percolates up through the sand. I can’t wait to see Steve Irwin make that look adventurous!

div>