Hello, C-Sharp

Uncategorized — Titus Barik on January 25, 2005 at 12:00 am

using System; class Hello {

  public static void Main()
  {
     Console.WriteLine( "Hello, World!" );   
  }
}

As an experienced Java developer, learning the syntax and grammar of the C-Sharp language was a pleasant task and took only a few days. There’s a lot of things I like about the language that are definite improvements over the Java 1.4 Language Specification: delegates and events as a modern-day interface callback mechanism, properties as a shorthand for accessors and modifiers, boxing and unboxing, and my favorite, the return of enumerations and declarative, iterative constructs.

The bad news is that C-Sharp has also brought back many of the annoyances of the C++ language. These include operator overloading, the infamous goto, structures, and non-automatic dynamic binding. I’ll just pretend that these features don’t exist. And for the most part, you aren’t required to use any of these language constructs in your code anyway.

The best part, of course, is the open source Mono .NET Compiler for Linux. Sponsored by Novell, Mono includes both developer tools and the infrastructure needed to run .NET client and server applications. Even Windows Forms support is currently in the works. This technology has a lot of potential, but I’m still, understandably, just a little bit skeptical of Microsoft.

2 Comments »

  1. Dare Obasanjo published a document back in 2001 titled A Comparison of Microsoft’s C# Programming Language to Sun Microsystems’ Java Programming Language. He enumerated at length the similarities of and the differences between the two languages as they existed at that time. Although it may be slightly outdated, his detail and organization is worth a read.

    Comment by Scott D. Strader — January 29, 2005 @ 6:10 pm
  2. Yeah, I went to college with Dare at Georgia Tech. I really need to get in touch with him again one of these days. Thanks.

    Comment by Titus Barik — January 29, 2005 @ 7:25 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WP Hashcash

titus@barik.net | The Weblog of Titus Barik