Groups | Blog | Home
all groups > dotnet general > december 2004 >

dotnet general : .Net vs Java


Moonraker
12/31/2004 5:57:12 PM

After working extensively with .Net and Java, these are the differences I
see:

Java does not have Reflection.Emit
But it does have Reflection.

That's okay so far, because most programmers are too dumb to use
Reflection.Emit.

Visual Studio .net is the easiest way to create web services.

Windows.Forms, while easy to create, are hopelessly behind other toolkits
such as Swing and Gtk.



7
12/31/2004 6:17:35 PM
[quoted text, click to view]

Have you tried Mono as replacement for .net?
Some of the 200 odd liveCDs that boot from CD
and run without having to install come with mono already working.
http://www.frozentech.com/content/livecd.php
All free and done up techies with open source source code
to configure and modify to heart's content.
Moonraker
12/31/2004 6:24:12 PM
[quoted text, click to view]


[quoted text, click to view]

Yes, I am a huge fan of mono!

[quoted text, click to view]

I get mine straight from the source: Suse.

There is a Red Carpet channel so it can be easily updated.

Lately I've been fascinated with developing UIs in Glade -- an XML based
structure for defining forms that can operate with mono/c#. It's
obviously 2 years ahead of AXML.


Ivar
12/31/2004 9:30:13 PM
[quoted text, click to view]
Probably this answers your question, it's hard to argue with big/huge fan.
But moving from c# (I used it from since first beta) to java I don't see any
problems with java.
Some things are better in java, another in .net - they both are pretty big
NUT.

Anyway, some beeer would help to solve it.

[quoted text, click to view]

Moonraker
12/31/2004 10:06:22 PM
[quoted text, click to view]

I totally agree.

I feel that as a professional programmer, I must work in both environments
to be of value.


[quoted text, click to view]
jeffc
12/31/2004 10:51:36 PM

[quoted text, click to view]

In what way, generally, is that behind? I was told Swing is something of a
"black art" - truth to that?

Daniel O'Connell [C# MVP]
1/2/2005 4:45:57 AM
[quoted text, click to view]

Hopefully dynamic methods will start to even that out a little, ;).

Mike Schilling
1/2/2005 7:46:04 AM

[quoted text, click to view]

There are Java equivalents of Reflection.Emit, e.g. Bcel
(http://jakarta.apache.org/bcel/)

I'd certainly avoid both of them unless I had no plausible alternatives. (I
have had to use Refelction.Emit to create a dynamic .NET assembly. Ugh.)

Live And Let Die
1/2/2005 7:52:59 AM
[quoted text, click to view]

\
[quoted text, click to view]

Why ugh?

I think Reflection.Emit is the most brilliant part of .net

--
"You see, in this world there are two types of people, my friend:
those with loaded guns and those who dig. You dig."
Jon Skeet [C# MVP]
1/2/2005 7:59:15 AM
[quoted text, click to view]

In my view it's one of those things which is a bit of a pain to use,
and is only very, very rarely useful. When it *is* useful, it's a
godsend, but it's more "cool" than useful, IMO.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
Octopussy
1/2/2005 8:57:15 AM
[quoted text, click to view]

I think you are defining /useful/ only in terms of what you already do.

And there I agree with you.

However, in terms of what could be done, that's never been done before...


[quoted text, click to view]


--
"You see, in this world there's two
kinds of people, my friend: Those
with loaded guns and those who dig.
Jon Skeet [C# MVP]
1/2/2005 7:59:32 PM
[quoted text, click to view]

Not really. I'm defining it in terms of what I *want* to do. I rarely
want to do anything which needs on-the-fly code generation. Things like
ASP.NET do, and that's fine - but I'll leave the code generation to MS.

[quoted text, click to view]

But does it *need* to be done?

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
Section 8
1/3/2005 9:30:07 AM
[quoted text, click to view]


[quoted text, click to view]

That's crazy.

For examply, I was thinking over the weekend, say I wanted to create a
multiplayer game. And say I wanted to use all kinds of OO class structures
to define the characters, their actions and so on...

Well, now, how about making it more interesting, by allowing the behavior of
the classes to change *on* *the* *fly* by using Reflection.Emit...you can
modify the methods that define the game, as the game is played.


--
"The Bush administration aims in its 2005 budget to cut by $1 billion the
$18 billion fund that helps about 2 million Americans--generally the poor,
elderly, and disabled--pay their rent."
-Mother Jones
http://www.motherjones.com/news/dailymojo/2004/05/05_520.html
Jon Skeet [C# MVP]
1/3/2005 3:49:23 PM
[quoted text, click to view]

Do you think that would be particularly popular? People don't generally
want to be writing programs while playing games - particularly not in
real-time. (If there's no time pressure, they can just compile their
code in a normal way, just like with the .NET ecosystem type game which
was around a while ago.)

Go ahead, write the game, and I'd be interested to see it - but that
sounds more like a solution in search of a problem than a genuine need
being met.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
AddThis Social Bookmark Button