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.
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
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
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme