1) Always remember to test the First, the Last, and the Middle objects in the array.
As a computer science student, testing your code is an essential part of the development process. It can also be one of the most time-consuming and frustrating aspects of programming. However, Professor Tri Pham from Foothill College taught us a simple trick that can help make the testing process more efficient.
The trick is to always test the first, last, and middle objects in an array. By testing these three objects, you can ensure that your code covers different scenarios and that it handles both the beginning and end of the array, as well as the middle. This approach can help prevent silly mistakes and save time in the long run.
In conclusion, testing is an important step in software development, and by following Professor Pham's advice, you can improve your testing process and catch any potential issues early on. Remember to always test the first, last, and middle objects in an array.
Here is one example coming from our assignment#2 testing requirement.
However, today, I found this method really helped me from making stupid mistakes. I am writing this down to help me better remember it next time.