Technical discussion: C # and Java dispute

zhaozj2021-02-12  199

Builder.com invited several CNET's programmers Dan Seewer, Norris Shelton and Kevin Cobb to participate in the debate on C # and Java. Is there a huge gap between the two languages ​​and their respective development platforms?

Builder.com: Ok, now who is ready to "I like Java", who is to "I like C #"?

Kevin: First, we must explain that we are all Java users. So from three Java users' views, we just give our opinions on C # - good or bad.

Norris: We can prove our point of view, they are indeed right. C # is very similar to Java, and the difference between them is much smaller than C # and C . If there is something in Java, there will be something like it in C #, and vice versa.

Dan: I think Microsoft's words are C , and their development of C .

Kevin: What can we come up?

Dan: Yes, can we come up with what else to attract and persuade C users?

Kevin: I learned the C # process, it's a fight against me, add some of the floating things, just attracting people's eye, but didn't really make it a better language. Maybe this is something wrong ...

Dan: No, I think so.

Norris: I think they have C , and then have Java. Something of C is taken to make Java simpler. single.

DAN: Very right. If the c enthusiasts don't like this, they will regard this change as an obstacle.

Norris: It should be said that this is not established for Java users, because if you use Java in the beginning, you will not feel any inconvenience.

Dan:

Norris: But those who do not apply Java have seen all restrictions. If I am a C programmer, and I don't want to learn Java, so I started learning C #. Microsoft adds a lot of content for C #, but in some cases, they will only become more complicated. For example, an indexer - it does not give you a new thing. Java programmers will not feel losses, but I believe this will increase the complexity of the program.

DAN: The operator is also the same truth.

Norris: Yes. Dan: You will overload the operator and confused before, which is an important part of C . When I use C , I have used it, I always feel that it makes things more complicated, and it doesn't need to be complex. For example, for plus sign or minus, you must pay attention to the type of variable. "Do those variables are objects?" They are objects. Then continue to find a real method, the overload is here. But if there is no overload, then you are stranded.

Norris: Yes. This has an example of this problem: I am reading Programming C # (SECOND Edition), saying: "If you do this in C #, you think others can use this library in VB, you have to use other methods The effect is the same. "That is because VB, even new VB.NET does not support operator overload. If someone wants to use your library, VB.NET will not support, it is really a problem.

Builder.com: So, you say that Microsoft has added the incompatibility with VB.NET and other .NET language to C #?

Norris: Yes. They seem to follow the public language runtime (CLR), but C # has its own operator overload, can't do this in VB.NET. You can use those objects because it is in the CLR, VB.NET allows you to do this, but you can't use that library here, it doesn't work. Dan: Is your C # function like this?

Norris: Oh, yes.

DAN: I am reading .Net Development for Java Program, one chapter compared Java and C #, but did not cover this problem with VB.

Builder.com: Since you are all Java programmers. Then why do you want to learn C #?

Norris: This is not because we are Java programmers, but because we are Java programmers in Louisville, Cayman Islands, without so many Java positions in Louisville.

[laugh]

Builder.com: However, in addition to just because "other people use it" and "need", there should be a reasonable explanation.

Kevin: This depends on what we look at it because we are web programmers. We have chosen this line. So I am interested in learning any tools related to Web development, including C #, Net, Java, JSP, and more. If I leave here, I hope to another web development position, so I have to make yourself more competitive, then at least be familiar with C # ,. Net and other things.

转载请注明原文地址:https://www.9cbs.com/read-6378.html

New Post(0)