Personal Assignment 2---Pair programming object code review

Source: Internet
Author: User

General

1.Does The code work? Does It perform it intended function, the logic is correct etc.

Visually from the results, the results of the operation is good, if the input format indicated in the job requirements to set parameters, the output is basically in line with expectations. And it feels better than my program.

2.Is all the code easily understood?

The whole idea and my program is similar, is also generated, turn suffix recalculation, so very good to understand.

3.Does it conform to your agreed coding conventions? These would usually cover location of braces, variable and function names, line length,

Not quite in line with, feeling style is not very good. It's best to have a space between binary operators. Look at the clear point, and then the name is not very good, not too can have a certain meaning.

4.Is there any redundant or duplicate code?

It feels like there are too many branches to generate expressions in the Main function, and some can be properly merged into internal branches.

5.Is the code as modular as possible?

It basically conforms to the requirements of modular programming, but the feeling of the generated parts is not as independent as the Main function.

Security

1.Are all data inputs checked (for the correct type, length, format, and range) and encoded?

This is not done, but the teacher also seems to mention in the homework requirements this time does not involve the detection of the legitimacy of the input.

2.Are output values checked and encoded?

Check over, no encode ...

3.Are invalid parameter values handled?

No, same 1 .

Documentation

1.Do comments exist and describe the intent of the code?

No comments at all!

2.Are all functions commented?

No comments at all!

Because there is no requirement to write a document, the following items are not.

Testing

1 This part of the content should be displayed by the author, but because there is no project submitted as a job, so there is no way to talk about it.

Personal Assignment 2---Pair programming object code review

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.