Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are your feelings about Java and .net

2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article is to share with you about the feelings about Java and .net. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it with the editor.

Some thoughts on Java and .net

Used to use jsp, what struts,hibernate has done, I have also developed a similar struts, but it is easier to use (of course, not enough features, enough on the line), used in many projects, have a certain role, since then also infatuated with the broad sense of java, you can play freely, with a variety of design patterns to enhance your development, simplify your work, reduce the workload.

However, after doing several projects, I found that jsp is not always good enough as a client. I always fantasize that one day, writing a program called BMP can procrastinate with rad tools like writing a program called CMARS, and then write the code. When jsf comes out, it seems to be a little interesting, but it is immature and lacks the effective support of ide. As far as I know, only ibm websphere studio application developer 5.1 or above supports it. But this thing consumes too much resources, so it is hard to give up.

At this time, coinciding with the uproar of. Net, during this period of time, I was watching. Net, and found that. Net is very powerful as a client. It is also relatively easy to interact with some Microsoft software products such as excel/word, and can also use some design patterns to improve work efficiency. However, I do not know whether it is because I have transferred from the java camp, or because I have a bad impression of the original asp. I always think that there is a gap between asp.net and java in some ways:

1. For the whole web model, I think ms did not take into account some possible hierarchical development from the beginning, so there are some things that do not support well, the most obvious one is in the design of session/request/response. I thought. Net would refer to some things of java to improve these parts that were supposed to fail in asp, but I found that it was basically the same things as asp, such as The things of my page are handed over to the business logic layer in the background to be processed. When finished, I want to write the returned results to response, and then in the corresponding class of the page, I take the data from response and show it. This is good for layering and loosely coupled design, but in .net (I use C #), response can't send the data back to the page. I checked msdn. It is found that some of the functions of passing key-value can only be accomplished with cookie, but my God! Cookie? I can't stand it. What if cookie is disabled on the client side? And what about security?

2, in java R Mapping, there are many open source frameworks in java, such as hibernate is one of the best, of course, in .net, there is also a nhibernate (please pay attention to the name, not to mention reference to java's hibernate to do), currently not much use, difficult to comment, but from the reflection on the Internet, it is still not mature.

The above is only a little personal learning understanding, due to contact with. Net soon, I do not know whether it is right or not.

The greatest hope is to make better improvements to session/request/response in the new version of the .net framework, and also hope that the. net third-party development framework will mature soon, hehe, then we will be blessed.

These are the feelings about Java and .net. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report