201771010132- Xu thought experiment triple-junction project - "Northwest Normal epidemic prevention and control information system"

project content
Course class blog link https://edu.cnblogs.com/campus/xbsf/nwnu2020SE/
This job requires link https://www.cnblogs.com/nwnu-daizh/p/12521474.html
My course learning objectives (1) practice pair programming (2) method of operation control Github collaborative development programs.
This job helped me achieve learning objectives in what areas Through pair programming, we learn from each other, very helpful in learning programming
Bear her name - Student ID Yang Qiju -201,771,010,134
The blog knot the other job link https://www.cnblogs.com/yqj-yf-111/p/12588932.html
Github repository project link address https://github.com/sisi-713/test

Task 2: Two two free knot right, right knot the other side "of software engineering experiment two individual events," the project results to evaluate

Knot the other blog links: https://www.cnblogs.com/yqj-yf-111/p/12508399.html

Github links to other nodes warehouse project: https://github.com/Tanya11010

Blog comments:

Code Checklist:

  • 1. Summary section
    ? 1) comply with the code requirements and specifications Mody
    A: The basic accord.

    2) whether the code design thoughtful?
    A: Consider more comprehensive.

    ? How 3) code readability
    Answer: high readability.

    ? 4) What the code easier to maintain
    A: easier maintenance.

    ? Each row 5) code execution and examine it, huh
    A: checked.

  • 2. Design specification - Part
    1) design for compliance with known design patterns or items commonly used mode?
    A: The basic compliance.

    ? 2) There are no hard-coded string or / and other digital presence
    Answer: no.

    3) code is not dependent on a particular platform, whether it will affect the future of transplantation (such as Win32 to Win64)?
    Answer: no.

    4) developers write new code functionality can be achieved with existing Library / SDK / Framework of whether there is a similar function in this project can call without having to re-implement all??
    A: You can achieve, does not exist.

    5) There is no unused code can be cleared?
    A: has been cleared.

  • 3. Code Specification
    ? 1) modify part of the code in line with the standards and style it (the detailed provisions omitted)
    A: The basic accord.

  • 4. DETAILED code portion
    1) has no error processing for external function call, checking whether the return value or exception handling??
    A: error processing, the external function call, checking the return value, the process an exception.

    2) parameters passed with no errors, the length of the string length byte or character (may be single / double-byte), the start count is 0 or 1 to start counting?
    A: substantially no error, the string when the length of the character length, from 0 to start counting.

    How 3) boundary conditions are treated how default branch switch statement is processed cycle there may arise an infinite loop???
    Answer: By limiting the length, there is no infinite loop.

    4) There is no use assertion (Assert) to ensure that we really believe that the same conditions are met?
    Answer: no.

    ? 5) use of resources, is where to apply, the possibility of release where there is a resource leak (memory, files, various GUI resources, database access connections, etc.) there is no room for optimization??
    A: It may not lead to resource leaks.

    6) There is no data structure elements can not use?
    Answer: basically no.

  • 5. Effectiveness
    ?? How performance 1) code (Performance) worst-case scenario is what
    A: The program runs correctly.

    2) code, especially if there are clear cycles can optimize the part?
    A: have basic optimization.

    3) For systems and networks call time out if how to deal with??
    A: No timeout

  • 6. Readability
    how 1) there is no code readability enough comments??
    A: high readability, comments in detail.

  • 7. testability
    whether 1) the code needs to update or create a new unit test?
    A: No.

Knot the other items in the warehouse Fork, Clone, Push, Pull request, Merge pull request log data:

Task 3: The two pair programming, design and development of an information system in line with the needs of epidemic prevention and control of my school,

Requirements Analysis:
the analysis of the experience through my school teachers and students daily epidemic reporting system, to design a system in line with the needs of our school epidemic prevention and control. We write by java GUI interface to the epidemic situation of teachers and students to collect, query, statistics.

software design:

  • basic skills
    • 1) Ordinary teachers and students can log into the system epidemic reporting information;
    • 2) The secondary sector login to view the epidemic situation of the College, the College of inquiry disease information;
    • 3) School officials login to view the college epidemic, the epidemic can query information about each school, and the key to the epidemic data statistics, export the query excel file.

Software Implementation:

chart package: histogram processing
dao package: administrators, secondary sector, students and teachers authenticates, the outbreak records operational definitions;
Model package: Administrator, secondary sector, students, teachers, epidemic information entity class;
util package: database connection, the null character is determined;
View package: to achieve a variety of interfaces.

The core function code:

package util;
/**
 * 字符串工具类
 * @author 
 *
 */
public class StringUtil {
	/**
	 * 判断字符串是否为空
	 * @param str
	 * @return
	 */
	public static boolean isEmpty(String str) {
		if(str == null || "".equals(str.trim())) {
			return true;                      
		}else {                                
			return false;
		}
	}

	/**
	 * 判断不为空
	 * @param str
	 * @return
	 */
	public static boolean isNotEmpty(String str) {
		if(str != null && !"".equals(str.trim())) {
			return true;
		} else {
			return false;
		}
	}
}
package util;

import java.sql.Connection;
import java.sql.DriverManager;

public class JDBC {

	private String url = "jdbc:mysql://127.0.0.1:3306/test";
	private String username = "root";
	private String password = "2879026694xs";

	//连接数据库
	public Connection getCon() throws Exception {
		Class.forName("com.mysql.jdbc.Driver");
		Connection con = DriverManager.getConnection(url, username, password);
		return con;
	}
	//断开连接
	public void closeCon(java.sql.Connection con) throws Exception {

		if(con != null) {
			con.close();
		}
	}

}

Program run:
login screen:

Administrators and secondary sector interface:

Teachers and students Interface:

Pair discussion:

PSP:

PSP SUMMARY Plan time (min) required to complete a total of The actual time required for completion (min)
Planning plan 10 15
· Estimate · Estimate how much time this task requires, and planning generally work steps 10 15
Development Develop 740 1555
· Analysis · Needs analysis (including learning new technologies) 40 70
· Design Spec Generate design documents 10 25
· Design Review · Design Review (and his colleagues reviewed the design documents) 10 30
· Coding Standard · Code specifications (development of appropriate norms for the current development) 20 40
· Design · Specific design 40 60
· Coding · Specific coding 500 1200
· Code Review · Code Review 30 50
· Test · Test (self-test, modify the code, submit modifications) 40 80
Reporting report 18 43
· Test Report · testing report 5 20
· Size Measurement · Computing workload 5 8
· Postmortem & Process Improvement Plan · Hindsight, and propose process improvement plan 8 15

Summary experience: 1 + 1> 2 do? Through this twinning system design epidemic, let us truly feel the effect of the 1 + 1, in general, 1 + 1> 2. Pair programming design system for us to learn a great help, we analyze the problem in the course of the discussion, share their views, design ideas, as well as for programming, learn from each other and progress together, a lot. But because the issue conditions, many times we are not on time, not very efficient. And because of time, we realize the function is not very comprehensive.

Guess you like

Origin www.cnblogs.com/sisi-713/p/12566861.html