Friday, November 03, 2006

The String is both a reference type and a value type in .NET

In .NET the string class is a special type. It is a hybrid of both a value
type and a reference type.

A typical reference type is stored on the heap, and a typical value type is
stored on the stack.
Classes are reference types, for example, Windows.Forms.Textbox
Numbers are value types, for example, Integer and Double.

Value types are able to be stored on the stack because they have a finite
length. Reference types have variable length. So for reference types, .NET
keeps a memory reference on the stack to a location on the heap where the
actual value is stored. This allows the stack to be very fast and compact
while still being able to store large values like a string variable that
contains the preamble to the Constitution.

An analogy: A comparison to Sqlserver variables is the difference betwnee
the char and the varchar data types. The char always has a fixed length, the
varchar does not.

So the string is a special animal. You can use it without always having to
use a constructor. Good thing, it would be a real pain to have to write:
String myStringVar1 = new("hello ");
String myStringVar2 = new("world");
String myStringVar3 = myStringVar1 + myStringVar2;

Instead, because string is a special case in .NET we can just write:
String myStringVar3 = "hello " + "world";

Wednesday, November 01, 2006

Donate to the Joseph Fluckiger blog!

I read a post that had a great idea! This post requested donations to help pay for the blog. I thought sure, why not and I donated a buck and it took less than two minutes to make the donation via my paypal account. Well I thought I'd try it. So here it is my request for donations:



To help pay for the Joseph Fluckiger blog, world peace and the unification of string theory, click the "make donation" button below.














Have the unique name Fluckiger has a very unforseen, positive benefit in the present internet age

It’s amazing what you can find by typing in your name on google. Especially if your name is as unique as Joseph Fluckiger. Of 7 billion people on the planet, there are only a handful of Joseph Fluckigers. By searching on google, you can find, interestingly enough an archive of my race histories throughout my life, including my all-time favorite: a posting of the 1993 state championship team, Mesquite Poteet. Ah the glory days. I think my time was a 16:20 for a distance of 5 kilometers. My best race ever for sure.

Scrolling through the results of the search "Joseph Fluckiger" brings up the following:

1993 texas state championship:
http://www.uil.utexas.edu/athletics/archives/cross_country/playoff_text/93at_bcc.html

1999 BYU Rex Lee Memorial Run:
http://www.runnercard.com/Results/1999/RexLee/RES-MEN.TXT

2004, Tripple threat:
http://www.redtrailracing.com/TTT2004_final.html

2006: Venice triathalon
http://www.altavistasports.com/results/2006results/venicetriathlon090206.html

shuttle launches

I finally found a reliable, concise list of future shuttle launches and their statuses.

 

http://www.spaceflightnow.com/shuttle/sts116/fdf/manifest.html

 

It also shows how is on the mission and what is being done.