logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Sohail AliScience
(5/5)

503 Answers

Hire Me
expert
Vitor SCriminology
(5/5)

688 Answers

Hire Me
expert
AbdulrazzakEngineering
(/5)

668 Answers

Hire Me
expert
Garardd BerwickData mining
(5/5)

865 Answers

Hire Me
R Programming
(5/5)

Look at the formatting of the code. Are there unnecessary things like extra

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

When you submit your code file for A10a, you will be asked to do two code reviews of other submissions. We discussed code reviews in Lecture 17, and did an in-person code review in lab that week. Here you will provide two written code reviews. Code reviews are related to refactoring in that the reviewer can make suggestions about how to make the code clearer.

If you do not have two other submissions to review let me know. At a certain point I need to prompt the system to assign the last few reviews.

The review cannot be some generic statement like "well done!", or "good variable names!". You should carefully read the code, investigate anything you do not completely understand, then make specific and actionable suggestions.

Here is what you should do for the review:

Look closely at the code for the first few functions (the binary search is not likely to be very different for different people, and the testing, while important, is a different topic).

1. Look at the variable names used in each function. Do they describe the kind of values they hold? Did you have to look at the code to see how it was used to understand the name? If not, what would be a better name, and why?

2. Look at the formatting of the code. Are there unnecessary things like extra ()? Is there consistent spacing, like a space around an operator or after a comma? Do variables match Python style of lowercase words with a _ between words? Make suggestions as needed. Reference specific lines of code, not just "add spaces where needed".

3. Look at the use of Python. Are there things that seem unneeded, like two variables each storing the same data? Are there if statements checking things that do not need to be checked? Are things repeated that do not need repeating? Do loops use the most straightforward form (index for location, value for just values). Is append or + used appropriately? Describe where you see an issue and how it can be simplified or improved.

4. Look back at your own assignment. If something is done in a different way than you did, think about which way you think is better and why. Write your thoughts.

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme