473,385 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

.Net vs Java


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.


Nov 22 '05 #1
13 3044
7
Moonraker wrote:

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.


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.

Nov 22 '05 #2
7 wrote:

Have you tried Mono as replacement for .net?
Yes, I am a huge fan of mono!
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.


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.

Nov 22 '05 #3
>Yes, I am a huge fan of mono!
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.

"Moonraker" <ro***@moore.bond.007> wrote in message
news:Yp******************@newsread1.news.pas.earth link.net...

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.

Nov 22 '05 #4
Ivar wrote:
Yes, I am a huge fan of mono! 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.


I totally agree.

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


Anyway, some beeer would help to solve it.

"Moonraker" <ro***@moore.bond.007> wrote in message
news:Yp******************@newsread1.news.pas.earth link.net...

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.


Nov 22 '05 #5

"Moonraker" <ro***@moore.bond.007> wrote in message
news:Yp******************@newsread1.news.pas.earth link.net...

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.


In what way, generally, is that behind? I was told Swing is something of a
"black art" - truth to that?
Nov 22 '05 #6

"Moonraker" <ro***@moore.bond.007> wrote in message
news:Yp******************@newsread1.news.pas.earth link.net...

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.


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.)
Nov 22 '05 #7
Mike Schilling wrote:

\
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.)


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."
-C. Eastwood, G,B&U
Nov 22 '05 #8
Live And Let Die <ro***@moore.bond.007> wrote:
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.)


Why ugh?

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


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 - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #9
Jon Skeet [C# MVP] wrote:
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.
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...


--
"You see, in this world there's two
kinds of people, my friend: Those
with loaded guns and those who dig.
You dig." C. Eastwood, G,B&U
Nov 22 '05 #10
>> I think Reflection.Emit is the most brilliant part of .net

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.


Hopefully dynamic methods will start to even that out a little, ;).
Nov 22 '05 #11
Octopussy <bad.007@films> wrote:
Jon Skeet [C# MVP] wrote:
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.
I think you are defining /useful/ only in terms of what you already do.


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.
And there I agree with you.

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


But does it *need* to be done?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #12
Jon Skeet [C# MVP] wrote:

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.


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/dail...05/05_520.html

Nov 22 '05 #13
Section 8 <ro***@moore.bond.007> wrote:
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.


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.


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 - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
0
by: jaywak | last post by:
Just tried running some code on Linux (2.4.21-32.0.1.EL and Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)) and Windows XPSP2 (with Java HotSpot(TM) Client VM (build...
1
by: jaimemartin | last post by:
hello, I want to validate an xml by means of a schema (xsd). To do that first of all I´m using a SchemaFactory. The problem is that if I run the code in Windows all works fine, but If I run it in...
0
oll3i
by: oll3i | last post by:
package library.common; import java.sql.ResultSet; public interface LibraryInterface { public ResultSet getBookByAuthor(String author); public ResultSet getBookByName(String name);
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.