Time has come to the end of a period, and the front is a new road.

xiaoxiao2021-03-06  45

More than 30 days of winter holiday is my longest winter holiday, and now I still have to remember many tasks that I have given themselves before winter vacation. Time is not waiting, when I summarize it now, I have found it still have a lot of regrets. I still have to leave regrets to myself, and I also find that I have a lot of gains, I always leave myself. But no matter what, the end of this period, let me give it a memo, and the new semester will start now, and give a reference for the new semester.

(1) PRP project

The PRP project in the last semester did not complete. Before the members of the group arranged in the holiday, the work and tasks in the holiday were arranged. The main tasks in the holidays were the completion of all aspects of Portal. Focus on this big topic, and then learn a series of knowledge.

Establish a Portal server, I chose the very familiar Tomcat and a very good LifeRay-Portal-PRO-3.1 that is made by the Tomcat and a bottom frame. By using, read the source code, go to Liferay's Forum, learn some of the characteristics, usage methods, and some techniques. I also wrote a few articles in practice, put them in my own blog, I hope my harvest is also helpful to others. Because I have encountered some problems when I use Liferay, I am very hard when I find a document, and my domestic documentation is relatively small. A better product, if open source, its services are often charged, such as JBoss.

For open source software, there are often several examples to show or illustrate the functionality of this open source software or how to use, these examples have a relatively high representation, worth learning - by reading source code, to understand the implementation of functions . I don't know how to write portlets when I start, I don't know how to write portlets in Liferay, and the example of many portlets in Liferay has given me a good reference. I chose a weather forecast for portlet for learning. In this process, I not only learned the writing of Portlet, but I learned to use SOAP's use by writing my own portlet, I learned AXIS. In the process of reading the source code, some of the structures used in the code, some Design Pattern, some techniques, have a great help to their own coding levels. For example, LifeRay uses Struts to implement the MVC architecture, putting the doView, doedit, dohelp in the portlet with Struts's action, and loosen the code through several deployment description files, and understanding the understanding of this structure. Some types and file source code can experience the essence of some of the code.

Since this PRP project is completed three parts, the holiday is not completely combined due to various reasons, so this project is still not completed in the holiday, which is the biggest regret of this winter holiday.

(2) About testing

Very fortunate, I borrowed a book from the library before going to the library - "Test Drive Development Guide". This book is a book in my holiday. The reason is that it is really suitable for those who have the concept, how to use, and the benefits of its benefits, such as me.

This book has a lot of code, using Java and Junit. If you just look at these code, you may feel very boring, but if you practice this code, it is not just a blind COPY code, you may experience its fun and value.

In this book, use a simple Java Application to clear the whole process of test-driven development, and this whole process, some big homework we have done in the past is a good template. From demand to test, from testing demonstrates whether demand is implemented; from testing to encoding, reflecting the shortcomings of code from the test; loop incremental development, how to implement it from simple functions to complex functions. The essence must be in this process! Through this book, let me experience some original

From

Some words that have been heard in the teacher:

"Test Together with the encoding, the unit test is to be tested, and the unit test will be handed over to the programmer." Through the examples in the book, I fully understand the truth of this sentence. The programmer tests the basic functions in its own coding to ensure the correctness of the code, and the conditions for the basic functions are good than the condition of A 3 == 6 is A == 3. Only the most basic functions are guaranteed, and complex logic established in these basic functions can be guaranteed. When you write a Java code, a string variable S and a string are often written to s == "string", and it is fated in the condition of the IF, and this error is often difficult to find, through unit testing This problem can be avoided. Make the error underlayer and resolved. The programmer understands his code, and the code written by the code is tested in time, simple and efficient.

"The time of the code and test, almost half half" book, although it is a large piece of code, but only the Java Application's code is taken, there is more than half, and the light is almost half half. Because each class has a corresponding test class, each function function is in a class, there is a corresponding test, and these tests have indeed a large specific gravity. This will be seen that many programmers are reluctant to write test code because they have doubled the test code.

In the encoding, some duplicate code will be encountered, how to reconstruct these code, and some guidance in the book, and the benefits of the reconstruction, the performance of the test code is performed slightly (the test code will also be heavy) Structure. Through a simple example to illustrate the process of test-driven development, but you get far, this is my biggest gain.

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

New Post(0)