20165305 Experiment 3 Agile Development and XP Practice

Experiment 3-1

Agile development and XP practice http://www.cnblogs.com/rocedu/p/4795776.html , the content of Eclipse is replaced with IDEA

Refer to http://www.cnblogs.com/rocedu/p/6371315.html#SECCODESTANDARD to install the alibaba plugin to solve the specification problem in the code.

Use the tool (Code->Reformate Code) in IDEA to reformat the following code, and then study the Code menu to find a function that makes you feel the best. Submit a screenshot and add your student ID watermark.

public class CodeStandard {
public static void main(String [] args){
StringBuffer buffer = new StringBuffer();

Experiment 3-2

Add your learning partner to your own project on the code cloud. After confirming that the partner's project is added to yourself, download the Complex code of partner experiment 2, add no less than three JUnit unit test cases, and git add .; git after the test is successful commit -m "Add content to your student number"; git push;

Submit a screenshot of the partner project git log, including the above git commit information, and add your own student number watermark information

Experiment 3-3

Experiment 3 Agile Development and XP Practice http://www.cnblogs.com/rocedu/p/4795776.html , the content of Eclipse is replaced with IDEA

Complete the refactoring exercises, download your partner's code, perform at least three refactorings, submit a screenshot of the refactored code, and add your own student ID watermark. Submit your partner's code cloud project link.

1. shift+f6 to rename Example4_1ChongGou2
2. alt+ctrl+m extension method, adding XioujiRenwu method
3. alt+ctri+n inline back to XioujiRenwu The
second and third steps are done together, so it is equivalent to offset .
4. Change the class name XiyoujiRenwu to XiYouJiRenWu
code link
https://gitee.com/BESTI-IS-JAVA-2018/java-besti-is-djw20165328/blob/master/src/Example4_1.java

Experiment 3-4

Refer to http://www.cnblogs.com/rocedu/p/6683948.html to complete the learning of Java cryptography related content in pairs, combining refactoring, git, and code standards .

Submit the learning outcome code cloud link and representative results screenshots, with a student ID watermark.
20165305 code link: https://gitee.com/BESTI-IS-JAVA-2018/20165305zhenlong/blob/master/shiyan3/chonggou.java

Experimental summary:

Many of the experiments required two people to work together in pairs. In the beginning, we had a hard time getting a partner to join our project, but we finally managed to figure it out together. Also, we had issues refactoring our partner's code. First of all, we didn't know what refactoring was at first, and we still didn't quite understand after reading the link given by the teacher. After that, my partner and I searched the Internet together to master some refactoring skills.

Guess you like

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