C#

C# is not so bad. It’s 7 weeks now that I am working with this language and I quite enjoy it.

The tool is terrible slash horrible, we are using resharper that helps a bit but it’s not comparable to any java IDE that I know. Just the UI designer is nice and pretty easy to use, Windows Forms are for sure better than Swing, that was kind of easy.

Talking about the syntax I really like the using syntax:

writing something like:

using(Session s = manager.GetSession())

{

DoSomething();

}

is equivalent to the java

Session s;
try {

s = manager.GetSession();

doSomething();

} finally { s.dispose();}
To put an object in the using () this object must implement IDisposable, and then implement the Dispose Method. Isn’t nice?

Then also all the event and delegate stuff, too lazy to explain, try to have a look here or search with Google!
Transaction to C# was kind of easy, in 2 weeks I was up to speed. I am looking forward to the next C#, it looks just amazing. Java where are you?

This entry was posted in Uncategorized and tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

3 Comments

  1. Federico
    Posted May 24, 2007 at 2:44 am | Permalink

    Beware of the dark side of the power :)

  2. luca
    Posted May 24, 2007 at 10:07 am | Permalink

    what is that “s” thing ?!? uhmmm….super-hero ??

    I’m expecting to see a “session” variable, you lazy guy!!

    As navigator of this pair session I have to say we’re not proceeding until the variable name is updated! :-D

  3. Posted May 24, 2007 at 4:42 pm | Permalink

    Ok damn pair, I tell you, even better you can do this:

    using(manager.GetSession())

    {

    DoSomething();

    }

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>