My experience and experience from .net to java

Foreword: Since many people have asked me if I want to switch from .net to java, do you have any skills? I will now share my journey from .net to java. The comparison between the two languages ​​is not involved here, and the records are all about me. the opinion of.

One: The original intention of switching from .net to java was that
   I officially started using .net in November 2013 until the end of March 2016. It took nearly two and a half years before and after, from the first set of stations to the use of TDD. Build your own structure. To be honest, I really like the .net language, the editor is smart, and the language is very elegant. You can read a lot about .net from my blog, but a turning point in 2016 made me think about whether I should switch to java, because at that time 2 colleagues left one after another and went to Meituan and Xiaomi respectively (they are both front-end), who doesn't want to go to a big company to develop, I also want to, but I have read all the recruitment on the Internet, except for Autohome and Qunar, there are basically no For the recruitment of well-known companies, I went to see the recruitment of Java by too many large companies, such as Ali, Baidu, Meituan, NetEase, iQiyi, etc., so I really wanted to change careers at that time, so I watched it privately. A little java book.

Two: I chose
   to chat in an EA (enterprise architect) group one day. He said that he wanted to recruit people, so I would talk to him a little bit, because I would use EA to draw flowcharts, activity diagrams, sequence diagrams, etc., so he felt very He said that they are such a person. I hope I can go to work with them. Finally, during the detailed chat, I found out that they are java. He asked me what language do you use and I said .net. He hesitated and said, it doesn't matter the language Regardless of the family, I was hired just like that, but I was struggling for two weeks whether to go or not. One was not to do java, but to first draw a picture and say a demand analyst, and the other was that although the salary was higher than mine It turned out that the salary was a few thousand more, but the five insurances and one housing fund were paid more, and the old employer also proposed a salary increase, so I kept hesitating, and finally I made a choice. If I continue to go to .net, I can only find a good one The company will stay, but the outside world is not much better than my existing company, so I have to try, and I embark on the road of java.

Three: a new beginning
When I first started going to the company, I was drawing pictures during the day, all kinds of pictures, and I was not allowed to engage in java. I could only study privately at night. I remember that at that time I wanted to create a sqlhelper helper class like .net, and then I could complete additions, deletions, changes, and checks. It took 2 nights to get it done. My college roommate is a java guy, and then I asked him to guide me. He said whoever wrote this now is Hibernate or mybatis. I said if you can do it, he wrote it for a long time and checked the information I just finished it, I said that if I give you 20 minutes to get this done on .net, what kind of thing are you? In this way, I have completed the first step, I will be able to use the library, and then I will check on the Internet how beginners learn how to learn java, there are more introductions in this book "SERVLET/JSP in-depth explanation of TOMCAT-based WEB development by Sun Xin" is not advertising, just follow the book step by step, and then write what you have learned in the blog to strengthen your own. Understand, just like this, I wrote this and finally completed a small web page, I really have a sense of accomplishment, I feel like I went back to the time when I just came into contact with .net, and then I continued to study and started another book "30 Days of Learning" Pass Java_Web Project Case Development" and then start writing the project according to this example, and add unit tests on this basis, so I slowly prepare to look forward to the actual combat one day, and the opportunity comes again. Due to the small scale of the company, the turnover rate He was also high, so he asked me to develop. During this period, I knew a person with a solid foundation and a very good person. Then he took the development step by step and became more and more familiar with it. Later, the company leaders decided to let me use the new version. The development tool (idea) of , I was not very used to it at first, but I found that this can be comparable to vs, and I think it is very easy to use. In private, I still didn't forget to study, and continued the third book "SPRING in action", and just like this, I spent the time when I just started to get used to java, and then the company let me develop independently and undertake projects with relatively high concurrency ( Coupon related) Then I learned some ways to improve performance on the Internet, and I also open-sourced the project I wrote on GitHub for your reference (https://github.com/lipeiNet/peiyu-mem). Later, the buddy who took me to Jd quit the job, and the whole business was handed over to me. At that time, the knowledge was enough to handle this business. Later, the company's CTO and architects left one after another, and I heard that the company boss planned to poach people from Didi and use php to develop,

Four: Summary
1. There are generally 2 channels with slightly less risk when it comes to .net to java. The first is to transfer jobs internally, to have a good relationship with your own leaders, and then to have a good relationship with the leaders of the java department. Even if it is a flat jump, it is very good. , I have a classmate do this, not bad. The other is to study hard by private letter first, do some projects, and then you can look at the recruitment trends if you have nothing to do, and you may have unexpected gains.

2. Implement the projects that were previously implemented with .net in java. If you encounter problems, go to the query, and then the effect of reading books will be much better. If everything is good, you might as well go to the source code of java, mainly to see the collection. Finally, you can go out and test the water and see what the interviewer is interviewing. Then you can read more about this knowledge (because what they ask is generally used more)

3. Here I just write my own experience. Timing is really important.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326136573&siteId=291194637