Summary of the first formal Java Web development project

Source: Internet
Author: User

The second half of last year to now, because the company staff turnover, there are several new employees to me to lead, but also just from the school, in the process of communication with them, do not think of their just into this line of some feelings.

I remember that I wrote a summary, I think these are just out of school work experience of the programmer should have some help, but how can not find this article in the CSDN blog list.

Later inadvertently found it unexpectedly ran to my recycle Bin, I have forgotten is for what reason he ran here, but I want to recover time and found a bit of pit, csdn Recycle Bin things can not recover, so had to re-publish.

The following is a summary of the time:

Coming out of school, in a blink of an eye for the past three or four months, in the company's months, finally in recent weeks ushered in the first formal development projects, specifically, is the project iteration.

As of today, this round of iterations has been basically completed, although the task is not a lot of their own, and even can say very little, but the gains from it is still huge, this is probably the so-called practice out of the truth!

In the training school for four months, feel learned a lot of things, but has been vaguely, even the books of many problems can not be done independently. Often see a small program of code, the total feeling is very simple, but when just give yourself a need to find ideas, but always feel the impossible.


and came to the company, perhaps because of a different atmosphere, in the process of continuous learning, when I went back to find some of the small problems that have not been done before, incredibly surprised to find that it is not so difficult to see before, the solution of ideas are like the original has the same.


Perhaps this is the strength of accumulation, adhere to go on, there will be a lot of things unknowingly changed!


In this round of iterations, I am only responsible for the implementation of a query function, the overall relatively simple, but the results of the query to process the process seems to be a little more complex. Because it is the first independent development, so in this process made a lot of mistakes, ideas changed and changed, the code changed and changed, it is because of this, so that they get a great harvest.

This little function, the code was rewritten several times by me. At first, because of the complete strangeness of the MongoDB database , so just simple to apply other people's query statements to get a self-understanding of the results, and then a series of transformations, and finally turned the result into a familiar string and a list of the collection, On this basis to deal with, and finally get the results I want.


The result was I get out, is very excited, but after the master's inspection, told me that the wording is too undesirable, originally should be very simple implementation should not be made so complicated. As a result, in the Master's Guide to re-design ideas, completely abandon the use of string to deal with the idea, so almost the entire code has become a waste, can only start again!


Constantly check the information, constant inquiry, constant attempts, a day or two after the ordeal, and finally successfully use the second way to get the results I want. And then repeatedly check the many times, again determined that it seems to meet the requirements, I then found a master to me to check.


Full of expectations, but the results are still out of compliance, because our Web project uses the SPRINGMVC structure, and my Code processing logic is almost entirely one go in the DAO implementation Class!


For the Master of the review, I am convinced, because for the MVC three layer structure, as well as Controller, service, DAO, three layers, I was in the training school time has not been understood, until now the development of the time I am not clear how to use.


Master told me that DAO in the only deal with the database, get the results in the database is OK, and then the main processing logic in the service, the results returned in the service to be able to be called by others, the final return of the result of the final processing placed in the controller.


So, again to organize ideas, the DAO in the code decomposition, and then appropriate to the other two layers, and then several times debugging, and finally successfully ushered in the results I want.


I think, this should be OK! I have tested on this machine countless times, there is no problem, it should be finished! But when the final and the reception of a joint tune only to find completely not so, the front desk regardless of what kind of request to me, I returned to him unexpectedly are "message: no data; result:success"!


What a frustrating result, but it's still one step ahead! So can only once again desperately analysis, racking up the test.


But the results are unsatisfactory, I think, how to measure all feel should be no problem, but he turned out to be a problem, so I can only be kept scratching the ear of the cheek!


Here is the company, different from the school, the results can not be so, and no way to think of ways! So in the end feel really is out of the time, I can only find a master.

As a result, the master casually glance at a glance to find the problem, which makes me long-term toss more vain! The original problem is that I add a @requestbody comment when I receive the foreground parameter, I think the receiving parameter will be the annotation, but in fact this annotation can not be used in such a disorderly way!


In the master's again point of view, I deleted the note, the results of Tomcat start, page A refresh, want to the screen so magically appear in the interface, this time really feel quite silent, can not say the feeling of no language.


And the front desk of the joint adjustment success, this task is basically completed, the process, a preliminary understanding of MVC, the initial understanding of the MongoDB database, the initial understanding of the company's project development of the entire process, but also initially mastered the debug debugging.

In general, and so on, in this project, the biggest harvest should be mainly two, the first is to understand the company's formal project of the basic development process, so that they just entered the company when the psychological become slightly more practical.

To summarize, the approximate process should look like this:

First, the demand staff to the project team to ask the requirements, and then to the project team to explain the needs of all, we discuss the requirements of the details of the feasibility.

When the developer and the demand staff work together to determine if there is no problem with the demand, if there is time, you can let the developer make a demand counter-talk, when the requirements and development are confirmed that there is no problem, the demand is formally decided.

After the requirement is determined, the developer will coordinate and then customize the development of the design outline and API, the backend API typically includes some interfaces, the required parameters, and the front end to determine the access path, the parameters that need to be passed and the data format returned to the front end.

In the design of the API process, the front and back end of their respective design, to convene a special meeting to explain each other, in the process of explaining the discussion to reach the consensus of the relevant opinions, the process of testing personnel to participate.

When the API is well established, developers formally start to develop, and testers begin to write test cases.

In the process of writing code for the developer, to unit test for their own code, but also need to write a unit test document, in the process of testing constantly modify and optimize their own code to ensure more rigorous logic, more efficient execution, the code is more tidy.

Then, after the front and back end of each test and perfect their own function points, the front and rear end personnel together to make the joint adjustment, further ensure that the function is not a problem.

If there is no problem with the previous step, the code will be packaged and deployed to the test server to be tested by the testers to further identify the problem, in order to improve the final process.

This time the development of the basic steps is probably the case, then the second harvest is to learn the more correct development attitude.

Before the training, it may be because the environment is not the same, at that time encountered an exercise or a demand, will start to think for a while, when the efforts of a period of time can not solve the problem, usually will be tempted to look at the reference answer, and then in the help of the reference answer, thought to find their own ideas , and then it looks like the successful completion of the code, and the consequence is that, in fact, did not really get the harvest.

And this real development, there is no reference to the answer, nor do not do it regardless of the argument, no matter how you must find a way to get the results, it is because of this, so that they have been in the development of a completely different harvest and sentiment.

Life has many for the first time, the first time always make people remember especially deep! After the first time there will be countless other experiences, many things only go down to know the results, many things, as long as the continuous walk, there will be unexpected harvest! Practice out of genuine knowledge, action results, talk will endangers, hard work just hing Bang! In the theory of practice, in the mistakes of growth, in the failure to summarize, fall in the climb, adhere to continue to go on, learn, this world will eventually have a piece of their own sky!

The road is at the foot, adhere to go down, to program the writing of life, the code to generate power, with software to show value, let the program to promote the dream!!

Summary of the first formal Java Web development project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.