Re: Java and .NET (no Flames Pls)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 09/17/04


Date: Fri, 17 Sep 2004 13:40:21 +0100


 <"=?Utf-8?B?Sm9lIExlbnRyaWNoaWE=?=" <jlentrichia(nospam)@hotmail.com>>
wrote:
> Jon, it seems you are much in favor of java. Why then, I ask, are you a C#
> MVP?

Because I'm also very much in favour of C#. There's no reason why any
one person can't think they're both great languages on great platforms.
Currently I'm involved in writing C#. I may well go back to Java in my
job, whereupon I'll spend a little less time in these newsgroups and
more time back in the Java groups.

> I agree with all your statements. Except the last one where a consumer of a
> .NET webservice might not be able to. I haven't seen this, unless perhaps
> you're talking about returning a DataSet, in which case I have to argue that
> the benefits outweigh the consumption downfalls. Even a DataSet can be
> consumed tho I believe.

I *think* there are some things that a .NET web-service can produce
which aren't in the standard, but I don't have any examples to hand.
(IIRC, they're things which really should have been in the standard,
but aren't.)
 
> I will download Eclipse and give it a try next time I'm doing some Java code
> (likely next month) just on your recommendations alone. Some things I will
> look for: Does it contain a WYSIWYG HTML editor? Does it have an integrated
> WS proxy generator? Interactive debugging, with a built in web server? Good
> debugging features: watches, etc.

Interactive debugging, certainly. The web server isn't built-in, so
much as there are Tomcat plugins to make it easy. (The debugging is
actually better in Eclipse than current VS.NET, IMO. Things like
generic conditional breakpoints which I don't *think* are supported in
VS.NET.)

WYSIWYG HTML editor - I don't believe so, but there may well be a plug-
in somewhere.

WS proxy generator - again, I don't know, but I'd be very surprised if
a plug-in didn't exist. (In fact, have a look at
http://www.eclipse-plugins.info/eclipse/search.jsp?query=wsdl - it
looks like you should be fine.)

The number of plug-ins for Eclipse is enormous.
 
> One other thing, and this is strictly a preference nothing to do really with
> support (although you could argue perhaps some sense of abstraction) is
> Properties of a class instead of getters and setters. I was having a funny
> conversation with a Java programmer and he mistakenly thought that Properties
> were a violation of encapsulation, until I told him that they weren't
> internal data being accessed directly. (eg: Java: getThisProp{}
> setThisProp{}, C#: ThisProp{ get: set: };

That's one of the things I prefer about C#, along with delegates,
events, and the "using" statement.

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Relevant Pages

  • Re: Code Path
    ... > Google it finds it for java. ... plug-in for Eclipse, ...
    (microsoft.public.dotnet.languages.csharp)
  • lisp plug-in for Eclipse?
    ... but I am more familiar with Java and Eclipse. ... I am wondering whether there's any plug-in that support lisp editing in eclipse. ...
    (comp.lang.lisp)
  • Re: A constructive debate: Eclipse or NetBeans?
    ... However, I've tried NetBeans recently. ... better support for creating GUIs than Eclipse ... "make" as a build system and primarily programming in OCaml. ... Sun's Java implementation. ...
    (comp.lang.java.softwaretools)
  • Re: Debugger
    ... To attach to a running process using VC (this is Visual Studio 2003 specific, ... go to your Java code. ... At this stage /don't/ use Eclipse to do this, ... Now you may see that your breakpoint has changed to show a '?'. ...
    (comp.lang.java.programmer)
  • Re: Debugger
    ... To attach to a running process using VC (this is Visual Studio 2003 specific, ... go to your Java code. ... At this stage /don't/ use Eclipse to do this, ... Now you may see that your breakpoint has changed to show a '?'. ...
    (comp.lang.java.programmer)