Author | Message |
---|---|
rabbott
Posts: 1649
|
Posted 14:32 Sep 13, 2016 |
When I review your work I expect you to understand and explain the code at the following levels.
For example, for goldbachPairs you should be able to say that for argument g it computes the list of (p, k) pairs such that p is prime and g = p + 2 * k ^2. You should be able to say that it's strategy is to enumerate possible values of k and for each to compute what p would be, i.e., p = g - 2 * k ^ 2. If p is prime, (p, k) is one of the pairs. You should then be able to explain step by step by discussing to the code (and this is the first time you will be talking about the code directly) how the code implements the strategy just discussed. Of course, you should also be able to answer other questions the project asks.
When you are reviewing someone else's code, be sure the person you are reviewing understands the code at this level. If the person being reviewed needs help in understanding, please offer whatever help you can. It's fine to be a tutor. However, once you serve as tutor, do not be the reviewer. To be sure the person you helped really understands, someone else should be the reviewer. ============================== If you haven't looked at this forum post, you should. I helps you understand how list comprehension works.
Last edited by rabbott at
19:05 Sep 13, 2016.
|