Re: Generic question
From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 02/23/05
- Next message: Jon Skeet [C# MVP]: "Re: Generic question"
- Previous message: mvdevnull: "Re: make console wait until async method is complete"
- In reply to: One More Try: "Re: Generic question"
- Next in thread: Cor Ligthert: "Re: Generic question"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Feb 2005 07:00:11 -0000
One More Try <jd@aol.com> wrote:
> > Note that there's a big difference between development environment and
> > platform. Personally, my favourite development environment is Eclipse,
> > developing Java. I prefer the .NET platform and the C# language
> > though. Which are you actually interested in?
>
> I have Java experience - looking to see what dotnet is all about, and more
> importantly:
>
> 1) Is it truly scaleable (check out grid computing with Sun)
Scaleable is more about architecture than language, I believe. I don't
think there are many general distributed computing projects in .NET
yet, but I don't think there's anything stopping you from writing one.
> 2) Is it easier to code and maintain?
Personally, I find C# easier to write and read than Java. Things like
properties, the using statement, events and delegates all add to the
elegance of the language. It's also easy to interoperate with native
code, should you need to.
> 3) Is it faster to develop in dotnet over Java
Rougly the same, I'd say - except that the lack of refactoring in
VS.NET slows me down compared with developing in Eclipse.
> 4) Since ASP.NET is slow (but easy to develop), my preference would be
> first C# then VB.NeT. How do those languages compare
What makes you think that ASP.NET is slow?
> For slick routines, in Java, if you have a two byte character and try to
> assign it an int plus an int of type short (also two bytes), even with type
> casting, you get a precision error (when there isn't).
I don't think that's true. This program seems to do what you're saying,
with no errors or warnings:
public class Test
{
public static void main (String[] args)
{
int i = 5;
short j = 48;
char c = (char)(i+j);
System.out.println (c);
}
}
> I can do this in any other language (slick, common, and practical)
You shouldn't be doing this often, to be honest - characters should
usually be treated as characters, not as ints.
-- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
- Next message: Jon Skeet [C# MVP]: "Re: Generic question"
- Previous message: mvdevnull: "Re: make console wait until async method is complete"
- In reply to: One More Try: "Re: Generic question"
- Next in thread: Cor Ligthert: "Re: Generic question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|