For this post, I will generally discuss what I have learned during the first three weeks.
Although having no python experience before, I self-studied it during Winter Break and I think I have a solid basic understanding of it (It only slightly differs to Java but the logic is generally the same).
During the Ramp-up session, professor quickly went through not only the basic knowledge of Python, which is a great refresher to me, but also the particular detail that we need to pay attention. It was long but not tedious as the professor frequently make good jokes. During the class, we are also informed to write more economic codes, meaning that we need to express a certain function in a shorter way yet remain it understandable; I have never thought of coding economically before.
So far, the course revolves around the design of Application Program Interface and we are taught about several rule about. For instance, when we create a class, we want to make sure to include good and convenient class name, header, description, type contract, examples, and methods and for each method, it needs to have understandable parameter and purpose.
During week 3, we started to learn list comprehension, a very convenient and free way to compute loops. We talked about converting Celsius to Fahrenheit and writing list comprehension for prime numbers. Beside, we focused on the difference between doctest and unit test: unit test is defined outside the class but more comprehensive than doctest.
In short, I had great time during the three weeks and I hope to get more out of 148.
No comments:
Post a Comment