Clicky Web Analytics November 2004 - Posts - Brenton House

November 2004 - Posts

Throw vs. Throw ex

Here is an interesting article about throwing exceptions...
(Follow link for full article)

Rethrowing Exceptions ( via Jackie Goldstein's Weblog )

In Java, when you do "throw ex;", ex is being re-thrown as if it wasn't caught at all - no information about re-throwing is ever recorded and original stack trace info is preserved. If you do want to start exception's stack trace from the re-throwing point - oh, that's completely different story, you need to refill exception's stack trace using fillInStackTrace() method.

In .Net however, when you do "throw ex;", ex is being re-thrown, but the original stack trace info gets overriden. The point where exception is re-thrown is now becoming the exception's origin.

Basically MSIL (CIL) has two instructions - "throw" and "rethrow" and guess what - C#'s "throw ex;" gets compiled into MSIL's "throw" and C#'s "throw;" - into MSIL "rethrow"! Basically I can see the reason why "throw ex" overrides the stack trace, that's quite intuitive if you think about it for a moment. But "throw" syntax for "rethrow" instruction is not really intuitive. It smells stack based MSIL, which is obviously under the cover, but actually should be kept there. I guess they wanted to keep number of C# keywords small, that's the reason. So you just better know this stuff - use "throw;" to re-throw an exception in .NET.

koders.com - Open Source Code Search Engine

This looks like it could have potential.  I wonder how many open source .NET projects are indexed by this...

[From Richard Dudley

http://www.koders.com

From the site:

Koders is an open source search engine. It enables developers to easily search and browse source code in thousands of projects hosted at hundreds of open source repositories.

Koders.com: Find (open) source code fast
source: http://www.newsforge.com/article.pl?sid=04/11/01/1927212

How it works

Let's say you want to write a GPLed online card game, like bridge, in C. And wanted to see how others had handled shuffling the cards. On the Koders.com site, you could search for "shuffle cards" with the license option set to GPL and the language set to C. Then click on the Search button.

The results screen shows one hit: a program called server.c from the UNO - Card Game project on SourceForge. (SourceForge is another OSTG property, like NewsForge.) I find both the project and the specific program linked to from the results page. Clicking on server.c, I see plenty of meat for my own project. Very impressive.

After giving the site a spin, I sat down with Koders.com founder and chief architect Darren Rush.

Vivisimo. Cool Search Engine

Vivisimo is a very cool search engine that someone (who's blog is down right now... JOE) showed me.

It categorizes your search results on the left and lets you browse by topic.  It also has links by each search result that allows you to open a link in a new window, in a frame, or preview it in a collapsible IFrame (very cool).  The one thing that it is missing that I use a lot in google is viewing a cached version of a page (great when someone's website is down).

They also have a toolbar that has a popup blocker kind of like google's.  They call that Clusty and it uses a search result page that looks slightly different.  I am not sure the reason for that.

I will try it out for a while and let you know my results...

 

 

 

GMail service unavailable

Luciano reports that he is getting the message GMail service unavailable

I also have been getting this message for about 5 days now.  I think maybe it is time to find another mail service.  GMail is not living up to the hype.

 

Open-Source ADO.NET XML Provider

Open-Source ADO.NET XML Provider -- WilsonXmlDbClient v1.0

I just found this too.  I don't know how I missed this earlier as I am already subscribed to Paul's blog.   I will check this out as well.

ADO.NET Data Provider for RSS, POP3, NNTP, IMAP, SMTP

IP*Works! ADO.NET Data Provider   ( via The Daily Grind 495 )

All I gotta say is this has to be the coolest thing to come out in a while. 

I am going to try this out with my customized variation of Deyan Petrov's Data Access and Transaction Handling Framework (DAC2).
And then I am going to try this out with our very easy to use XML based Control Mapper that is used to populate WinForm controls from entities.

Sounds very cool, I will let you know how it works!


 

Kerry calls President Bush to concede election.

Apparently Kerry has called President Bush to concede the election.   Kerry is expected to address the nation around 1pm EST.

Moving on now...

 

CruiseControl.NET 0.7 RC1 is out

I have been setting up projects under CruiseControl.NET and it has been a fantastic experience.  Now that CruiseControl.NET supports multiple projects, it is flexible enough to support our very complex projects.  I will try to post some examples for those getting started with complex projects so that you don't have to go through my initial pain of getting everything setup.

 

The next four years are brought to you by the letter "W" and the number "1"

Wow, what an election!  I stayed up until 1:30 when Ohio was called for Bush by Fox Network.  Since I had to get up for work at 5:30am, it is going to be a long day, but it was worth it!  I'm sure that unless Kerry concedes defeat, this will get all dragged out in the courts again, but I am confident that the result will be the same.

  • The real winners are the voters.  The voter turnout was huge and the results of this election are a very strong mandate for President Bush.
  • Out of the 11 states that had marriage amendments on the ballot, all 11 passed.  I hope this is a message that an overwhelming majority of the people believe in the sanctity of marriage and that it is a union between a man and a woman.  period.
  • It looks like Republicans made gains in both the House and the Senate.
  • Tom Daschle lost his Senate seat in South Dakota.  Just one seat, but very symbolic as Sen. Daschle was seen as being an obstructionist.
  • No surprise, but it seems that the pollsters entirely missed moral values as the number one election issue in 2004. (well, not in California and NY...)
  • Exit polls are just wrong.

 

More Posts