Testing the C# waters

So, since my desktop got fried and will barely boot into Linux, I figured it was time to check out Visual Studio 2005 (which my dad gave me at Christmas time). Installed with no problem, other than finding the key that I was given. It then decided that it needed a number of updates, so I let it do its thing, and eventually I was greeted with this:

Nice clean, and it started up faster than eclipse or Netbeans, though it is out dated by comparison. I decided that I wanted to write a quick hello world application, so I created a C# Project (or ’solution’ as it is referred to in some locations). And was greeted with this:

Also nice and clean, so far so good. It looks like a lot of code to write a small program though. Strange that System needs to be added via ‘using’ which I am assuming is similar to an import. Fair enough, it does it for me so I am not really that bothered by it. Now what do I type to print stuff out… hmmm… Since it is a console program, perhaps it is console (the first thing that showed up using code completion, fancy that).

It makes sense, and there is a description of it right there and everything. How convenient.

Console.WriteLine("Howdy World");

There we go, run it and woah, that was fast, no pausing on debug apparently. Should probably make it wait a second so that I can see what is going on in the console.
After looking around on the Internet a little, I found that you do that by:

System.Threading.Thread.Sleep(3000);

So without further ado, here is a screen shot of the running program:

That wasn’t so bad, I guess I could get used to the weird redundancies of the language. Its sort of like java I guess.

If you want to run my totally awesome program, here it is:

Howdy World.exe

Edit

And there is why we don’t like Microsoft, its so obtrusive… Installing VS 2005 has removed all of my previous java file associations. They are now associated with j# files… grrr…

2 Responses to “Testing the C# waters”

  1. C# is a very clean language.

    I think Visual Studio makes it nice to make GUIs too (hence the Visual part I guess).

    I wonder if they have forbidden “Generated Code” that you aren’t allowed to edit like NetBeans does.

  2. i HATE when new software changes old associations!!
    I haven’t really noticed it as much with my mac though. I wonder if it does it differently or if i just don’t install as much software….

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">