2017-2018-2 20165331 Experiment 3 "Agile Development and XP Practice" Experiment Report

Experiment 3 Agile Development and XP Practice

lab report cover

Course: Java Programming Class: 1653 Name: Hu Lin Student ID: 20165331

Achievement: Instructor: Lou Jiapeng Experiment Date: 2018.4.28

Experiment level: Preview level: Experiment time: 15:35 - 17:50

Instrument group: Compulsory/Elective: Experiment No.: 3

Experiment Name: Agile Development and XP Practice

The purpose and requirements of the experiment: ①Complete the content of experiment 3 Agile development and XP practice , among which the content related to Eclipse is replaced by IDEA for the simple tutorial of Intellj IDEA .
②Complete the checkpoints in the cloud class, or you can complete the experimental report first and submit it directly. Note that not only screenshots, but also explanations of knowledge points, principles, problems encountered and solutions. There should be multiple screenshots for a checkpoint in the lab report.

Experiment content and steps:

experiment one

1. Experimental requirements

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();
buffer.append('S');
buffer.append("tringBuffer");
System.out.println(buffer.charAt(1));
System.out.println(buffer.capacity());
System.out.println(buffer.indexOf("tring"));
System.out.println("buffer = " + buffer.toString());
if(buffer.capacity()<20)
buffer.append("1234567");
for(int i=0; i<buffer.length();i++)
System.out.println(buffer.charAt(i));
}
}

Second, the experimental screenshots
1

Experiment 2

1. Experimental requirements

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.

Second, the experimental screenshots
2

Experiment 3

1. Experimental requirements

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.

Second, the experimental screenshots
3

Experiment 4

1. Experimental requirements

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.

Second, the experimental screenshots

Guess you like

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