Re: Generic question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 02/23/05


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


Relevant Pages

  • Re: CMUCL for Windows - how much $$$ ?
    ... and Linux -- let me just disagree strongly with this view of the VC++ IDE. ... It has a debugger that doesn't crash several times a day. ... Finally, yes the VB language sucks, in many and varied ways. ... never heard the development environment described as one of them. ...
    (comp.lang.lisp)
  • Re: Void Main?
    ... recognize how everything he posts is a personal attack. ... It is evident from his articles that he has mastered neither language. ... experience of the C language to justify a claim to mastery of that language. ... Indeed, in a competent development environment, you'd never see the ...
    (comp.lang.c)
  • Re: CarrierIQ Software and Forth
    ... important in a Forth-based development environment. ... a language with Forth ancestry, ... both as a consumer and producer of events. ... As professional Forth's for Windows do with the event model of the ...
    (comp.lang.forth)
  • Re: More static type fun.
    ... There are changes that cannot be done at runtime even in Lisp. ... It is, as I said, a development environment issue. ... whether you have to do extra work to make it impossible. ... The only language I know that ...
    (comp.lang.lisp)
  • Re: Java is going to have closures.
    ... You're in a running Lisp session and dynamically adding and changing ... I hope you weren't trying to imply Eclipse is a nice development environment. ... It is not slow on my machine, and if by bloated you refer to feature ...
    (comp.lang.lisp)